HCRival/Atticus/Atticus-Server/nms-patches/Slot.patch

13 lines
275 B
Diff
Raw Permalink Normal View History

--- a/net/minecraft/server/Slot.java
+++ b/net/minecraft/server/Slot.java
@@ -45,6 +45,9 @@
}
public boolean hasItem() {
+ if (getItem() != null && getItem().count == 0) {
+ set(null);
+ }
return this.getItem() != null;
}