diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-01-04 22:06:29 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-01-04 22:06:29 +0000 |
commit | c13376df5d338b14a87305cebbbc930d47d20cb2 (patch) | |
tree | 0b14919d4860a36909333c4b0dee01c0e65a1d4b | |
parent | c051558691aefb2f71eabefa226e24912bb692e2 (diff) | |
download | craftbukkit-c13376df5d338b14a87305cebbbc930d47d20cb2.tar craftbukkit-c13376df5d338b14a87305cebbbc930d47d20cb2.tar.gz craftbukkit-c13376df5d338b14a87305cebbbc930d47d20cb2.tar.lz craftbukkit-c13376df5d338b14a87305cebbbc930d47d20cb2.tar.xz craftbukkit-c13376df5d338b14a87305cebbbc930d47d20cb2.zip |
SPIGOT-178: Treat ItemStacks of 0 size as empty
-rw-r--r-- | nms-patches/Slot.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nms-patches/Slot.patch b/nms-patches/Slot.patch new file mode 100644 index 00000000..dd05f9c0 --- /dev/null +++ b/nms-patches/Slot.patch @@ -0,0 +1,12 @@ +--- ../work/decompile-8eb82bde//net/minecraft/server/Slot.java 2015-01-04 21:48:34.213601099 +0000 ++++ src/main/java/net/minecraft/server/Slot.java 2015-01-04 21:48:34.213601099 +0000 +@@ -45,6 +45,9 @@ + } + + public boolean hasItem() { ++ if (getItem() != null && getItem().count == 0) { ++ set(null); ++ } + return this.getItem() != null; + } + |