summaryrefslogtreecommitdiffstats
path: root/nms-patches/InventoryLargeChest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/InventoryLargeChest.patch')
-rw-r--r--nms-patches/InventoryLargeChest.patch13
1 files changed, 6 insertions, 7 deletions
diff --git a/nms-patches/InventoryLargeChest.patch b/nms-patches/InventoryLargeChest.patch
index facb1d3d..a23b0cf5 100644
--- a/nms-patches/InventoryLargeChest.patch
+++ b/nms-patches/InventoryLargeChest.patch
@@ -1,6 +1,6 @@
--- a/net/minecraft/server/InventoryLargeChest.java
+++ b/net/minecraft/server/InventoryLargeChest.java
-@@ -1,10 +1,54 @@
+@@ -1,11 +1,55 @@
package net.minecraft.server;
+// CraftBukkit start
@@ -13,11 +13,9 @@
public class InventoryLargeChest implements ITileInventory {
private String a;
-- private ITileInventory left;
-- private ITileInventory right;
-+ public ITileInventory left;
-+ public ITileInventory right;
-+
+ public ITileInventory left;
+ public ITileInventory right;
+
+ // CraftBukkit start - add fields and methods
+ public List<HumanEntity> transaction = new java.util.ArrayList<HumanEntity>();
+
@@ -54,9 +52,10 @@
+ this.right.setMaxStackSize(size);
+ }
+ // CraftBukkit end
-
++
public InventoryLargeChest(String s, ITileInventory itileinventory, ITileInventory itileinventory1) {
this.a = s;
+ if (itileinventory == null) {
@@ -68,7 +112,7 @@
}