From 2fc755cc6526bc3e17222608e817e2e58cccf669 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Wed, 20 Mar 2013 09:41:16 -0500 Subject: Don't filter out -1 data in ItemStack. Fixes BUKKIT-3824 --- src/main/java/net/minecraft/server/ItemStack.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 389558cf..622f2991 100644 --- a/src/main/java/net/minecraft/server/ItemStack.java +++ b/src/main/java/net/minecraft/server/ItemStack.java @@ -156,7 +156,7 @@ public final class ItemStack { return; } - if (!(this.usesData() || Item.byId[this.id].o() || this.id > 256)) { // Should be canBeDepleted + if (!(this.usesData() || Item.byId[this.id].o() || this.id > 255)) { // Should be usesDurability i = 0; } @@ -167,7 +167,7 @@ public final class ItemStack { // CraftBukkit end this.damage = i; - if (this.damage < 0) { + if (this.damage < -1) { // CraftBukkit - don't filter -1, we use it this.damage = 0; } } -- cgit v1.2.3