mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
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:
parent
f0af95505b
commit
5b6f271037
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user