diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-06-09 23:41:50 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-06-10 03:52:48 -0400 |
commit | cb9c7d1b2a27965f5a3336ef073800d10adcd56f (patch) | |
tree | 18ccbad3e8a7aa7c4a749f3b9f865083dcf2be1b /src | |
parent | 7e3895b69a48cac99349ca1d2bcd3937d27686c4 (diff) | |
download | craftbukkit-cb9c7d1b2a27965f5a3336ef073800d10adcd56f.tar craftbukkit-cb9c7d1b2a27965f5a3336ef073800d10adcd56f.tar.gz craftbukkit-cb9c7d1b2a27965f5a3336ef073800d10adcd56f.tar.lz craftbukkit-cb9c7d1b2a27965f5a3336ef073800d10adcd56f.tar.xz craftbukkit-cb9c7d1b2a27965f5a3336ef073800d10adcd56f.zip |
Fixed trapdoors not updating their state if a Player Interact event is cancelled.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemInWorldManager.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ItemInWorldManager.java b/src/main/java/net/minecraft/server/ItemInWorldManager.java index 1fd6c75e..052a29a9 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); |