Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-24 07:10:10 +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.
Dieser Commit ist enthalten in:
Ursprung
f0af95505b
Commit
5b6f271037
@ -167,7 +167,7 @@ public class BlockDoor extends Block {
|
|||||||
this.b(world, i, j, k, l, 0);
|
this.b(world, i, j, k, l, 0);
|
||||||
}
|
}
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
} else if (l > 0 && Block.e(l).isPowerSource()) {
|
} else if (block.isPowerSource()) {
|
||||||
org.bukkit.World bworld = world.getWorld();
|
org.bukkit.World bworld = world.getWorld();
|
||||||
org.bukkit.block.Block bukkitBlock = bworld.getBlockAt(i, j, k);
|
org.bukkit.block.Block bukkitBlock = 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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren