PaperMC/nms-patches/Slot.patch

13 lines
275 B
Diff
Raw Normal View History

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/Slot.java
+++ b/net/minecraft/server/Slot.java
2016-05-10 13:47:39 +02:00
@@ -48,6 +48,9 @@
}
public boolean hasItem() {
+ if (getItem() != null && getItem().count == 0) {
+ set(null);
+ }
return this.getItem() != null;
}