summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-11-28 09:09:56 +1100
committermd_5 <git@md-5.net>2018-11-28 09:09:56 +1100
commitee6684bba725a6d2f30422ae01041f3949ff2d76 (patch)
treefc09987fabf2e15ff9e65fbc8f9c8b0912aa4285
parent97b0057ad3577bc433cc44ed44cc09263ab58f89 (diff)
downloadcraftbukkit-ee6684bba725a6d2f30422ae01041f3949ff2d76.tar
craftbukkit-ee6684bba725a6d2f30422ae01041f3949ff2d76.tar.gz
craftbukkit-ee6684bba725a6d2f30422ae01041f3949ff2d76.tar.lz
craftbukkit-ee6684bba725a6d2f30422ae01041f3949ff2d76.tar.xz
craftbukkit-ee6684bba725a6d2f30422ae01041f3949ff2d76.zip
SPIGOT-4507: BlockRedstoneEvent current flipped for levers
-rw-r--r--nms-patches/BlockLever.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/BlockLever.patch b/nms-patches/BlockLever.patch
index 945ac935..391ba432 100644
--- a/nms-patches/BlockLever.patch
+++ b/nms-patches/BlockLever.patch
@@ -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;