diff options
Diffstat (limited to 'nms-patches/BlockLever.patch')
-rw-r--r-- | nms-patches/BlockLever.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/BlockLever.patch b/nms-patches/BlockLever.patch index c150122f..bded7ed0 100644 --- a/nms-patches/BlockLever.patch +++ b/nms-patches/BlockLever.patch @@ -9,7 +9,7 @@ public class BlockLever extends Block { public static final BlockStateEnum<BlockLever.EnumLeverPosition> FACING = BlockStateEnum.of("facing", BlockLever.EnumLeverPosition.class); -@@ -155,6 +157,20 @@ +@@ -127,6 +129,20 @@ if (world.isClientSide) { return true; } else { @@ -26,7 +26,7 @@ + return true; + } + // CraftBukkit end -+ - iblockdata = iblockdata.a(BlockLever.POWERED); ++ + iblockdata = iblockdata.a((IBlockState) BlockLever.POWERED); world.setTypeAndData(blockposition, iblockdata, 3); - world.makeSound((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.5D, (double) blockposition.getZ() + 0.5D, "random.click", 0.3F, ((Boolean) iblockdata.get(BlockLever.POWERED)).booleanValue() ? 0.6F : 0.5F); + float f3 = ((Boolean) iblockdata.get(BlockLever.POWERED)).booleanValue() ? 0.6F : 0.5F; |