From ff1c1daf692ab0efacba81e77cd26d5ccdecd20c Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Sat, 16 Mar 2013 14:51:22 -0500 Subject: Allow data on tool items. Fixes BUKKIT-3773 --- src/main/java/net/minecraft/server/ItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 e98836df..3b3a48dc 100644 --- a/src/main/java/net/minecraft/server/ItemStack.java +++ b/src/main/java/net/minecraft/server/ItemStack.java @@ -150,7 +150,7 @@ public final class ItemStack { public void setData(int i) { // CraftBukkit start - filter out data for items that shouldn't have it - if (!this.usesData()) { + if (!(this.usesData() || Item.byId[this.id].o())) { // Should be canBeDepleted i = 0; } -- cgit v1.2.3