mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 03:48:01 +01:00
13 lines
275 B
Diff
13 lines
275 B
Diff
--- 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;
|
|
}
|
|
|