summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2013-03-18 18:22:13 -0500
committerTravis Watkins <amaranth@ubuntu.com>2013-03-18 18:22:13 -0500
commit51d4e647fbb796ab27a0c7a796b44ec614bfd992 (patch)
treeda2436872fe60056947ea993cbdb4c59138918e8
parentd26336eb4007bb1edfdf824fb970da51b8482d96 (diff)
downloadcraftbukkit-51d4e647fbb796ab27a0c7a796b44ec614bfd992.tar
craftbukkit-51d4e647fbb796ab27a0c7a796b44ec614bfd992.tar.gz
craftbukkit-51d4e647fbb796ab27a0c7a796b44ec614bfd992.tar.lz
craftbukkit-51d4e647fbb796ab27a0c7a796b44ec614bfd992.tar.xz
craftbukkit-51d4e647fbb796ab27a0c7a796b44ec614bfd992.zip
Only filter data on block items, not all items.
-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 d528420d..389558cf 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())) { // Should be canBeDepleted
+ if (!(this.usesData() || Item.byId[this.id].o() || this.id > 256)) { // Should be canBeDepleted
i = 0;
}