Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-4507: BlockRedstoneEvent current flipped for levers
Dieser Commit ist enthalten in:
Ursprung
97b0057ad3
Commit
ee6684bba7
@ -13,7 +13,7 @@
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
+ // CraftBukkit start - Interact Lever
|
+ // CraftBukkit start - Interact Lever
|
||||||
+ boolean powered = iblockdata.get(POWERED);
|
+ boolean powered = !flag; // Old powered state
|
||||||
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||||
+ int old = (powered) ? 15 : 0;
|
+ int old = (powered) ? 15 : 0;
|
||||||
+ int current = (!powered) ? 15 : 0;
|
+ int current = (!powered) ? 15 : 0;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren