Paper/nms-patches/Slot.patch
2015-03-04 09:48:58 +00:00

22 lines
597 B
Diff

--- /home/matt/mc-dev-private//net/minecraft/server/Slot.java 2015-02-26 22:40:23.091608134 +0000
+++ src/main/java/net/minecraft/server/Slot.java 2015-02-26 22:40:23.091608134 +0000
@@ -2,7 +2,7 @@
public class Slot {
- private final int index;
+ public final int index; // CraftBukkit - public
public final IInventory inventory;
public int rawSlotIndex;
public int f;
@@ -45,6 +45,9 @@
}
public boolean hasItem() {
+ if (getItem() != null && getItem().count == 0) {
+ set(null);
+ }
return this.getItem() != null;
}