summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2013-03-16 14:51:22 -0500
committerTravis Watkins <amaranth@ubuntu.com>2013-03-16 14:51:22 -0500
commitff1c1daf692ab0efacba81e77cd26d5ccdecd20c (patch)
tree86289323870aced4032d8af27d9fbfd84df013c1 /src
parent2e47a1eb8078fa5ef5e591c2a758ca03b7ea1e17 (diff)
downloadcraftbukkit-ff1c1daf692ab0efacba81e77cd26d5ccdecd20c.tar
craftbukkit-ff1c1daf692ab0efacba81e77cd26d5ccdecd20c.tar.gz
craftbukkit-ff1c1daf692ab0efacba81e77cd26d5ccdecd20c.tar.lz
craftbukkit-ff1c1daf692ab0efacba81e77cd26d5ccdecd20c.tar.xz
craftbukkit-ff1c1daf692ab0efacba81e77cd26d5ccdecd20c.zip
Allow data on tool items. Fixes BUKKIT-3773
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/ItemStack.java2
1 files changed, 1 insertions, 1 deletions
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;
}