summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-06-09 23:41:50 -0400
committerEvilSeph <evilseph@unaligned.org>2011-06-10 03:52:48 -0400
commitcb9c7d1b2a27965f5a3336ef073800d10adcd56f (patch)
tree18ccbad3e8a7aa7c4a749f3b9f865083dcf2be1b /src/main
parent7e3895b69a48cac99349ca1d2bcd3937d27686c4 (diff)
downloadcraftbukkit-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/main')
-rw-r--r--src/main/java/net/minecraft/server/ItemInWorldManager.java2
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);