Skip to content

Commit

Permalink
fix:Fixed #357
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5734 committed Dec 21, 2024
1 parent e7f96ba commit 4756f31
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public static InventoryView createInvView(AbstractContainerMenu container) {
}

public static CraftInventory createInv(Player containerOwner, AbstractContainerMenu container) {
// Banner start - fix owner NPE
if (containerOwner == null) {
containerOwner = BukkitSnapshotCaptures.getContainerOwner();
}
// Banner end
return new CraftInventory(new ContainerInvWrapper(container, containerOwner));
}

Expand Down

0 comments on commit 4756f31

Please sign in to comment.