mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 05:26:50 +01:00
SPIGOT-4507: BlockRedstoneEvent current flipped for levers
This commit is contained in:
parent
97b0057ad3
commit
ee6684bba7
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
return true;
|
||||
} else {
|
||||
+ // 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());
|
||||
+ int old = (powered) ? 15 : 0;
|
||||
+ int current = (!powered) ? 15 : 0;
|
||||
|
|
Loading…
Reference in a new issue