13
0
geforkt von Mirrors/Paper

SPIGOT-4507: BlockRedstoneEvent current flipped for levers

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2018-11-28 09:09:56 +11:00
Ursprung 1114d726cd
Commit c6b5dde39f

Datei anzeigen

@ -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;