Fix missed doors diff. Fixes BUKKIT-4908

l previously was the block id, however Minecraft's refactoring means that
the method is now passed a Block reference rather than the id.  l is now
the data value of the block, so the block retrieved with that value is not
the correct block to be testing.
This commit is contained in:
Nate Mortensen 2013-12-01 14:28:11 -07:00
parent f0af95505b
commit 5b6f271037

View File

@ -167,7 +167,7 @@ public class BlockDoor extends Block {
this.b(world, i, j, k, l, 0);
}
// CraftBukkit start
} else if (l > 0 && Block.e(l).isPowerSource()) {
} else if (block.isPowerSource()) {
org.bukkit.World bworld = world.getWorld();
org.bukkit.block.Block bukkitBlock = bworld.getBlockAt(i, j, k);
org.bukkit.block.Block blockTop = bworld.getBlockAt(i, j + 1, k);