diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-15 01:23:52 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-15 01:23:52 +0100 |
commit | 5b2c774edc069f70d1fa9940d96bb0b8705bef7a (patch) | |
tree | 79d1800e7154bba7b5fca4f8c8373ee4376cca89 /src/main/java/net/minecraft/server/InventoryLargeChest.java | |
parent | 54bcd1c1f36691a714234e5ca2f30a20b3ad2816 (diff) | |
download | craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.tar craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.tar.gz craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.tar.lz craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.tar.xz craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.zip |
Update for Minecraft 1.8
Diffstat (limited to 'src/main/java/net/minecraft/server/InventoryLargeChest.java')
-rw-r--r-- | src/main/java/net/minecraft/server/InventoryLargeChest.java | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/InventoryLargeChest.java b/src/main/java/net/minecraft/server/InventoryLargeChest.java index 15dcdd8a..023f2751 100644 --- a/src/main/java/net/minecraft/server/InventoryLargeChest.java +++ b/src/main/java/net/minecraft/server/InventoryLargeChest.java @@ -18,6 +18,14 @@ public class InventoryLargeChest implements IInventory { public InventoryLargeChest(String s, IInventory iinventory, IInventory iinventory1) { this.a = s; + if (iinventory == null) { + iinventory = iinventory1; + } + + if (iinventory1 == null) { + iinventory1 = iinventory; + } + this.b = iinventory; this.c = iinventory1; } @@ -55,7 +63,17 @@ public class InventoryLargeChest implements IInventory { this.c.update(); } - public boolean a_(EntityHuman entityhuman) { - return this.b.a_(entityhuman) && this.c.a_(entityhuman); + public boolean a(EntityHuman entityhuman) { + return this.b.a(entityhuman) && this.c.a(entityhuman); + } + + public void e() { + this.b.e(); + this.c.e(); + } + + public void t_() { + this.b.t_(); + this.c.t_(); } } |