Fix door physics and revert to pre 1.0 behavior

This commit is contained in:
Tahg
2012-01-07 18:38:05 -05:00
parent 483a619e8a
commit b74a69041e
2 changed files with 10 additions and 19 deletions

View File

@@ -142,8 +142,7 @@ public class BlockDoor extends Block {
if (world.getTypeId(i, j - 1, k) != this.id) {
world.setTypeId(i, j, k, 0);
}
if (l > 0 && l != this.id) {
else if (l > 0 && l != this.id) { // CraftBukkit
this.doPhysics(world, i, j - 1, k, l);
}
} else {
@@ -166,8 +165,8 @@ public class BlockDoor extends Block {
if (!world.isStatic) {
this.b(world, i, j, k, i1, 0);
}
} else if (l > 0 && l != this.id) {
// CraftBukkit start
// CraftBukkit start
} else if (l > 0 && Block.byId[l].isPowerSource()) {
org.bukkit.World bworld = world.getWorld();
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);
org.bukkit.block.Block blockTop = bworld.getBlockAt(i, j + 1, k);