From ee6684bba725a6d2f30422ae01041f3949ff2d76 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 28 Nov 2018 09:09:56 +1100 Subject: [PATCH] SPIGOT-4507: BlockRedstoneEvent current flipped for levers --- nms-patches/BlockLever.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/BlockLever.patch b/nms-patches/BlockLever.patch index 945ac93564..391ba43249 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;