From cf2abd20e876987c2d6715f8df13ccdda31ef7bb Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 23 Mar 2012 01:36:45 -0400 Subject: Fixed Doors not dropping when the block they are placed on is removed. Fixes BUKKIT-1292 --- src/main/java/net/minecraft/server/BlockDoor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/net/minecraft/server/BlockDoor.java b/src/main/java/net/minecraft/server/BlockDoor.java index 1b81e466..e6b1599b 100644 --- a/src/main/java/net/minecraft/server/BlockDoor.java +++ b/src/main/java/net/minecraft/server/BlockDoor.java @@ -157,7 +157,7 @@ public class BlockDoor extends Block { if (world.getTypeId(i, j + 1, k) != this.id) { world.setTypeId(i, j, k, 0); - flag = true; + //flag = true; // CraftBukkit } if (!world.e(i, j - 1, k)) { @@ -169,11 +169,9 @@ public class BlockDoor extends Block { } if (flag) { - /* CraftBukkit start - Move the drop to on break instead of on physics if (!world.isStatic) { this.b(world, i, j, k, i1, 0); } - // */ } else if (l > 0 && Block.byId[l].isPowerSource()) { org.bukkit.World bworld = world.getWorld(); org.bukkit.block.Block block = bworld.getBlockAt(i, j, k); -- cgit v1.2.3