diff options
Diffstat (limited to 'nms-patches/InventoryLargeChest.patch')
-rw-r--r-- | nms-patches/InventoryLargeChest.patch | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nms-patches/InventoryLargeChest.patch b/nms-patches/InventoryLargeChest.patch index a23b0cf5..2332ec3b 100644 --- a/nms-patches/InventoryLargeChest.patch +++ b/nms-patches/InventoryLargeChest.patch @@ -1,10 +1,11 @@ --- a/net/minecraft/server/InventoryLargeChest.java +++ b/net/minecraft/server/InventoryLargeChest.java -@@ -1,11 +1,55 @@ +@@ -1,11 +1,61 @@ package net.minecraft.server; +// CraftBukkit start +import java.util.List; ++import org.bukkit.Location; + +import org.bukkit.craftbukkit.entity.CraftHumanEntity; +import org.bukkit.entity.HumanEntity; @@ -51,12 +52,17 @@ + this.left.setMaxStackSize(size); + this.right.setMaxStackSize(size); + } ++ ++ @Override ++ public Location getLocation() { ++ return left.getLocation(); // TODO: right? ++ } + // CraftBukkit end + public InventoryLargeChest(String s, ITileInventory itileinventory, ITileInventory itileinventory1) { this.a = s; if (itileinventory == null) { -@@ -68,7 +112,7 @@ +@@ -68,7 +118,7 @@ } public int getMaxStackSize() { |