From 6aaa1e83df796b7d380a22af3842f3aa4b367f4d Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Wed, 20 Mar 2013 11:11:29 -0500 Subject: Really don't filter out -1 data in ItemStack. --- src/main/java/net/minecraft/server/ItemStack.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main/java/net/minecraft/server/ItemStack.java') 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) { -- cgit v1.2.3