2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/Slot.java
|
|
|
|
+++ b/net/minecraft/server/Slot.java
|
2015-02-26 23:41:06 +01:00
|
|
|
@@ -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;
|
2015-01-04 23:06:29 +01:00
|
|
|
@@ -45,6 +45,9 @@
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean hasItem() {
|
|
|
|
+ if (getItem() != null && getItem().count == 0) {
|
|
|
|
+ set(null);
|
|
|
|
+ }
|
|
|
|
return this.getItem() != null;
|
|
|
|
}
|
|
|
|
|