diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index 801d5f23ad..07d528a1f0 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/paper-server/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) {