diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemStack.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/ItemStack.java b/src/main/java/net/minecraft/server/ItemStack.java index 622f2991..68e481c6 100644 --- a/src/main/java/net/minecraft/server/ItemStack.java +++ b/src/main/java/net/minecraft/server/ItemStack.java @@ -40,10 +40,12 @@ public final class ItemStack { this.f = null; this.id = i; this.count = j; - this.setData(k); // CraftBukkit - if (this.damage < 0) { - this.damage = 0; - } + // CraftBukkit start - pass to setData to do filtering + this.setData(k); + //if (this.damage < 0) { + // this.damage = 0; + //} + // CraftBukkit end } public static ItemStack createStack(NBTTagCompound nbttagcompound) { |