summaryrefslogtreecommitdiffstats
path: root/nms-patches/InventoryLargeChest.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2015-06-06 19:33:48 +1000
committermd_5 <git@md-5.net>2015-06-06 19:46:42 +1000
commita65e45d889c1f040e1921eb84903af915df512db (patch)
tree74ff87413ffc36de8640085c6b611b554a55b144 /nms-patches/InventoryLargeChest.patch
parenta6a57a96d02e57264d45120ce9f272c18c64407a (diff)
downloadcraftbukkit-a65e45d889c1f040e1921eb84903af915df512db.tar
craftbukkit-a65e45d889c1f040e1921eb84903af915df512db.tar.gz
craftbukkit-a65e45d889c1f040e1921eb84903af915df512db.tar.lz
craftbukkit-a65e45d889c1f040e1921eb84903af915df512db.tar.xz
craftbukkit-a65e45d889c1f040e1921eb84903af915df512db.zip
[SPIGOT-946] Begin making use of access transforms to simplify patching.
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 @@
}