3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00
Paper/nms-patches/Slot.patch
2015-01-04 22:06:29 +00:00

13 Zeilen
385 B
Diff

--- ../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;
}