diff options
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index 801d5f23..07d528a1 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java @@ -169,6 +169,8 @@ public class CraftInventory implements org.bukkit.inventory.Inventory { } ItemStack[] inventory = getContents(); for (int i = 0; i < inventory.length; i++) { + if (inventory[i] == null) continue; + boolean equals = false; if (withAmount) { |