From 7f7192f8fd8357e664e7e2d6e7c5f65fd0fcd2f7 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Tue, 6 Nov 2012 06:05:28 -0600 Subject: Update CraftBukkit to Minecraft 1.4.4. --- src/main/java/net/minecraft/server/ContainerChest.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/main/java/net/minecraft/server/ContainerChest.java') diff --git a/src/main/java/net/minecraft/server/ContainerChest.java b/src/main/java/net/minecraft/server/ContainerChest.java index c0e70ead..b36d9325 100644 --- a/src/main/java/net/minecraft/server/ContainerChest.java +++ b/src/main/java/net/minecraft/server/ContainerChest.java @@ -62,21 +62,21 @@ public class ContainerChest extends Container { } } - public boolean c(EntityHuman entityhuman) { + public boolean a(EntityHuman entityhuman) { if (!this.checkReachable) return true; // CraftBukkit - return this.container.a(entityhuman); + return this.container.a_(entityhuman); } public ItemStack b(EntityHuman entityhuman, int i) { ItemStack itemstack = null; - Slot slot = (Slot) this.b.get(i); + Slot slot = (Slot) this.c.get(i); if (slot != null && slot.d()) { ItemStack itemstack1 = slot.getItem(); itemstack = itemstack1.cloneItemStack(); if (i < this.f * 9) { - if (!this.a(itemstack1, this.f * 9, this.b.size(), true)) { + if (!this.a(itemstack1, this.f * 9, this.c.size(), true)) { return null; } } else if (!this.a(itemstack1, 0, this.f * 9, false)) { @@ -93,8 +93,12 @@ public class ContainerChest extends Container { return itemstack; } - public void a(EntityHuman entityhuman) { - super.a(entityhuman); + public void b(EntityHuman entityhuman) { + super.b(entityhuman); this.container.f(); } + + public IInventory d() { + return this.container; + } } -- cgit v1.2.3