diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-06-30 13:54:12 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-06-30 13:54:12 -0400 |
commit | 25f72c9caa46b4b7acb6983ae6c47cab92ce9bc9 (patch) | |
tree | c76662d0e6c67f4301d35fde7d6b7b2e6955f196 /src/main/java/net/minecraft/server/ItemDoor.java | |
parent | b53029975978541e442beedbc369d890872cf2b8 (diff) | |
download | craftbukkit-25f72c9caa46b4b7acb6983ae6c47cab92ce9bc9.tar craftbukkit-25f72c9caa46b4b7acb6983ae6c47cab92ce9bc9.tar.gz craftbukkit-25f72c9caa46b4b7acb6983ae6c47cab92ce9bc9.tar.lz craftbukkit-25f72c9caa46b4b7acb6983ae6c47cab92ce9bc9.tar.xz craftbukkit-25f72c9caa46b4b7acb6983ae6c47cab92ce9bc9.zip |
Fixed doors not updating their state to reflect any redstone currents when placed.
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemDoor.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemDoor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/ItemDoor.java b/src/main/java/net/minecraft/server/ItemDoor.java index 5340b770..5e9d921b 100644 --- a/src/main/java/net/minecraft/server/ItemDoor.java +++ b/src/main/java/net/minecraft/server/ItemDoor.java @@ -78,7 +78,7 @@ public class ItemDoor extends Item { // CraftBukkit start - bed world.suppressPhysics = false; - world.applyPhysics(i, j, k, block.id); + world.applyPhysics(i, j, k, Block.REDSTONE_WIRE.id); BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, blockState, clickedX, clickedY, clickedZ, block); if (event.isCancelled() || !event.canBuild()) { @@ -91,7 +91,7 @@ public class ItemDoor extends Item { world.setTypeIdAndData(i, j + 1, k, block.id, i1 + 8); world.suppressPhysics = false; // world.applyPhysics(i, j, k, block.id); // CraftBukkit - moved up - world.applyPhysics(i, j + 1, k, block.id); + world.applyPhysics(i, j + 1, k, Block.REDSTONE_WIRE.id); --itemstack.count; return true; } |