summaryrefslogtreecommitdiffstats
path: root/nms-patches/TileEntityDispenser.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/TileEntityDispenser.patch')
-rw-r--r--nms-patches/TileEntityDispenser.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/TileEntityDispenser.patch b/nms-patches/TileEntityDispenser.patch
index 778f2f8c..3f950c83 100644
--- a/nms-patches/TileEntityDispenser.patch
+++ b/nms-patches/TileEntityDispenser.patch
@@ -11,7 +11,7 @@
+import org.bukkit.entity.HumanEntity;
+// CraftBukkit end
+
- public class TileEntityDispenser extends TileEntityContainer implements IInventory {
+ public class TileEntityDispenser extends TileEntityLootable implements IInventory {
private static final Random f = new Random();
private ItemStack[] items = new ItemStack[9];
@@ -45,7 +45,7 @@
public TileEntityDispenser() {}
public int getSize() {
-@@ -38,6 +70,7 @@
+@@ -42,6 +74,7 @@
for (int k = 0; k < this.items.length; ++k) {
if (this.items[k] != null && TileEntityDispenser.f.nextInt(j++) == 0) {
@@ -53,7 +53,7 @@
i = k;
}
}
-@@ -120,7 +153,7 @@
+@@ -130,7 +163,7 @@
}
public int getMaxStackSize() {