From 655b5d0aa987b718cd6ce45c5f388d43ac2344b6 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 20 Jan 2012 14:52:32 -0500 Subject: [PATCH] Reverted changes to getItem(). Will be reimplemented after RB. By: EvilSeph --- .../java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d4e62a2b85..385a6fc993 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 @@ -27,7 +27,7 @@ public class CraftInventory implements org.bukkit.inventory.Inventory { } public ItemStack getItem(int index) { - return (getInventory().getItem(index) == null || getInventory().getItem(index).id == 0) ? null : new CraftItemStack(getInventory().getItem(index)); + return new CraftItemStack(getInventory().getItem(index)); } public ItemStack[] getContents() {