Skip to content

Commit

Permalink
Fix #3011
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Apr 6, 2024
1 parent b186d78 commit ae72122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/mohistmc/inventory/InventoryOwner.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static InventoryHolder get(TileEntity te) {
public static InventoryHolder get(IInventory inventory) {
try {
return inventory.getOwner();
} catch (AbstractMethodError e) {
} catch (AbstractMethodError | NullPointerException e) {
return (inventory instanceof TileEntity) ? get((TileEntity) inventory) : null;
}
}
Expand Down

0 comments on commit ae72122

Please sign in to comment.