mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Doors and trapdoors should function correctly once again
This commit is contained in:
1 parent
91b673e375
commit
7db72dfd2c
2 files changed
+2
-2
No files matched your search
@@ -166,8 +166,8 @@ public class BlockDoor extends Block {
|
||||
if (!world.isStatic) {
|
||||
this.b(world, i, j, k, i1, 0);
|
||||
}
|
||||
} else if (l > 0) {
|
||||
// CraftBukkit start
|
||||
} else if (l > 0 && Block.byId[l].isPowerSource()) {
|
||||
org.bukkit.World bworld = world.getWorld();
|
||||
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);
|
||||
org.bukkit.block.Block blockTop = bworld.getBlockAt(i, j + 1, k);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user