From cb9c7d1b2a27965f5a3336ef073800d10adcd56f Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 9 Jun 2011 23:41:50 -0400 Subject: [PATCH] Fixed trapdoors not updating their state if a Player Interact event is cancelled. --- src/main/java/net/minecraft/server/ItemInWorldManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minecraft/server/ItemInWorldManager.java b/src/main/java/net/minecraft/server/ItemInWorldManager.java index 1fd6c75e11..052a29a9f1 100644 --- a/src/main/java/net/minecraft/server/ItemInWorldManager.java +++ b/src/main/java/net/minecraft/server/ItemInWorldManager.java @@ -69,6 +69,8 @@ public class ItemInWorldManager { boolean bottom = (this.world.getData(i, j, k) & 8) == 0; ((EntityPlayer) this.player).netServerHandler.sendPacket(new Packet53BlockChange(i, j, k, this.world)); ((EntityPlayer) this.player).netServerHandler.sendPacket(new Packet53BlockChange(i, j + (bottom ? 1 : -1), k, this.world)); + } else if (i1 == Block.TRAP_DOOR.id) { + ((EntityPlayer) this.player).netServerHandler.sendPacket(new Packet53BlockChange(i, j, k, this.world)); } } else { Block.byId[i1].b(this.world, i, j, k, this.player);