summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-01-20 14:52:32 -0500
committerEvilSeph <evilseph@gmail.com>2012-01-20 14:52:32 -0500
commit4f02563c63dca3203226e9c99e0635293e6b3845 (patch)
treea36214d3d85cadf1a1192df6e5740bc2e539a49f
parent1bbeec1f75cfe4273d3782617ed04b7586b17c72 (diff)
downloadcraftbukkit-4f02563c63dca3203226e9c99e0635293e6b3845.tar
craftbukkit-4f02563c63dca3203226e9c99e0635293e6b3845.tar.gz
craftbukkit-4f02563c63dca3203226e9c99e0635293e6b3845.tar.lz
craftbukkit-4f02563c63dca3203226e9c99e0635293e6b3845.tar.xz
craftbukkit-4f02563c63dca3203226e9c99e0635293e6b3845.zip
Reverted changes to getItem(). Will be reimplemented after RB.
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java
index d4e62a2b..385a6fc9 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() {