Reverted changes to getItem(). Will be reimplemented after RB.

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2012-01-20 14:52:32 -05:00
parent 5d0878be04
commit 655b5d0aa9

View file

@ -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() {