From 4f02563c63dca3203226e9c99e0635293e6b3845 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 20 Jan 2012 14:52:32 -0500 Subject: [PATCH] Reverted changes to getItem(). Will be reimplemented after RB. --- .../java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index d4e62a2b85..385a6fc993 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/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() {