summaryrefslogtreecommitdiffstats
path: root/nms-patches/Slot.patch
blob: dd05f9c03a30321f5cb983b178904cf57fbdb42b (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
     }