Doors and trapdoors should function correctly once again

This commit is contained in:
Nathan Adams
2011-11-28 07:00:04 +00:00
parent 91b673e375
commit 7db72dfd2c
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ public class BlockTrapdoor extends Block {
}
// CraftBukkit start
if (l > 0) {
if (l > 0 && Block.byId[l] != null && Block.byId[l].isPowerSource()) {
org.bukkit.World bworld = world.getWorld();
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);