summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorNate Mortensen <nate.richard.mortensen@gmail.com>2013-12-01 14:28:11 -0700
committerNate Mortensen <nate.richard.mortensen@gmail.com>2013-12-01 14:54:51 -0700
commit5b6f2710371ad6f1278c6678888f40891453458a (patch)
treeff20282071df1a67184d88c736ffde1f96ed459a /src/main/java
parentf0af95505babc7af7ecfcfdb76cb0633fe914265 (diff)
downloadcraftbukkit-5b6f2710371ad6f1278c6678888f40891453458a.tar
craftbukkit-5b6f2710371ad6f1278c6678888f40891453458a.tar.gz
craftbukkit-5b6f2710371ad6f1278c6678888f40891453458a.tar.lz
craftbukkit-5b6f2710371ad6f1278c6678888f40891453458a.tar.xz
craftbukkit-5b6f2710371ad6f1278c6678888f40891453458a.zip
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.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/minecraft/server/BlockDoor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/BlockDoor.java b/src/main/java/net/minecraft/server/BlockDoor.java
index 046ffb8d..9c3ae2e1 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);