diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-03-18 18:22:13 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-03-18 18:22:13 -0500 |
commit | 51d4e647fbb796ab27a0c7a796b44ec614bfd992 (patch) | |
tree | da2436872fe60056947ea993cbdb4c59138918e8 /src | |
parent | d26336eb4007bb1edfdf824fb970da51b8482d96 (diff) | |
download | craftbukkit-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemStack.java | 2 |
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; } |