diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityChest.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityChest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityChest.java b/src/main/java/net/minecraft/server/TileEntityChest.java index 4f45dba3..c900cafb 100644 --- a/src/main/java/net/minecraft/server/TileEntityChest.java +++ b/src/main/java/net/minecraft/server/TileEntityChest.java @@ -347,7 +347,7 @@ public class TileEntityChest extends TileEntity implements IInventory { ++this.o; if (this.world == null) return; // CraftBukkit - this.world.playNote(this.x, this.y, this.z, this.q(), 1, this.o); + this.world.playBlockAction(this.x, this.y, this.z, this.q(), 1, this.o); // CraftBukkit start - Call redstone event if (this.q() == Blocks.TRAPPED_CHEST) { @@ -363,13 +363,13 @@ public class TileEntityChest extends TileEntity implements IInventory { this.world.applyPhysics(this.x, this.y - 1, this.z, this.q()); } - public void l_() { + public void closeContainer() { if (this.q() instanceof BlockChest) { int oldPower = Math.max(0, Math.min(15, this.o)); // CraftBukkit - Get power before new viewer is added --this.o; if (this.world == null) return; // CraftBukkit - this.world.playNote(this.x, this.y, this.z, this.q(), 1, this.o); + this.world.playBlockAction(this.x, this.y, this.z, this.q(), 1, this.o); // CraftBukkit start - Call redstone event if (this.q() == Blocks.TRAPPED_CHEST) { |