From 5b6f2710371ad6f1278c6678888f40891453458a Mon Sep 17 00:00:00 2001 From: Nate Mortensen Date: Sun, 1 Dec 2013 14:28:11 -0700 Subject: [PATCH] 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. --- src/main/java/net/minecraft/server/BlockDoor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/BlockDoor.java b/src/main/java/net/minecraft/server/BlockDoor.java index 046ffb8ddf..9c3ae2e1e4 100644 --- a/src/main/java/net/minecraft/server/BlockDoor.java +++ b/src/main/java/net/minecraft/server/BlockDoor.java @@ -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);