mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
d506c12c07
By: md_5 <git@md-5.net>
12 lines
275 B
Diff
12 lines
275 B
Diff
--- a/net/minecraft/server/Slot.java
|
|
+++ b/net/minecraft/server/Slot.java
|
|
@@ -48,6 +48,9 @@
|
|
}
|
|
|
|
public boolean hasItem() {
|
|
+ if (getItem() != null && getItem().count == 0) {
|
|
+ set(null);
|
|
+ }
|
|
return this.getItem() != null;
|
|
}
|
|
|