Commits

Thinkofname authored c13376df5d3
SPIGOT-178: Treat ItemStacks of 0 size as empty
No tags

nms-patches/Slot.patch

Added
1 +--- ../work/decompile-8eb82bde//net/minecraft/server/Slot.java 2015-01-04 21:48:34.213601099 +0000
2 ++++ src/main/java/net/minecraft/server/Slot.java 2015-01-04 21:48:34.213601099 +0000
3 +@@ -45,6 +45,9 @@
4 + }
5 +
6 + public boolean hasItem() {
7 ++ if (getItem() != null && getItem().count == 0) {
8 ++ set(null);
9 ++ }
10 + return this.getItem() != null;
11 + }
12 +

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut