Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Doors and trapdoors should function correctly once again
Dieser Commit ist enthalten in:
Ursprung
91b673e375
Commit
7db72dfd2c
@ -166,8 +166,8 @@ public class BlockDoor extends Block {
|
|||||||
if (!world.isStatic) {
|
if (!world.isStatic) {
|
||||||
this.b(world, i, j, k, i1, 0);
|
this.b(world, i, j, k, i1, 0);
|
||||||
}
|
}
|
||||||
} else if (l > 0) {
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
|
} else if (l > 0 && Block.byId[l].isPowerSource()) {
|
||||||
org.bukkit.World bworld = world.getWorld();
|
org.bukkit.World bworld = world.getWorld();
|
||||||
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);
|
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);
|
||||||
org.bukkit.block.Block blockTop = bworld.getBlockAt(i, j + 1, k);
|
org.bukkit.block.Block blockTop = bworld.getBlockAt(i, j + 1, k);
|
||||||
|
@ -121,7 +121,7 @@ public class BlockTrapdoor extends Block {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
if (l > 0) {
|
if (l > 0 && Block.byId[l] != null && Block.byId[l].isPowerSource()) {
|
||||||
org.bukkit.World bworld = world.getWorld();
|
org.bukkit.World bworld = world.getWorld();
|
||||||
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);
|
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren