summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockLever.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockLever.patch')
-rw-r--r--nms-patches/BlockLever.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/nms-patches/BlockLever.patch b/nms-patches/BlockLever.patch
index 70df76d2..f3ba7ba3 100644
--- a/nms-patches/BlockLever.patch
+++ b/nms-patches/BlockLever.patch
@@ -1,5 +1,5 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/BlockLever.java 2014-11-28 17:43:42.917707439 +0000
-+++ src/main/java/net/minecraft/server/BlockLever.java 2014-11-28 17:38:24.000000000 +0000
+--- /home/matt/mc-dev-private//net/minecraft/server/BlockLever.java 2015-02-26 22:40:22.167608144 +0000
++++ src/main/java/net/minecraft/server/BlockLever.java 2015-02-26 22:40:22.171608144 +0000
@@ -2,6 +2,8 @@
import java.util.Iterator;
@@ -8,13 +8,13 @@
+
public class BlockLever extends Block {
- public static final BlockStateEnum FACING = BlockStateEnum.of("facing", EnumLeverPosition.class);
-@@ -144,6 +146,20 @@
- if (world.isStatic) {
+ public static final BlockStateEnum<BlockLever.EnumLeverPosition> FACING = BlockStateEnum.of("facing", BlockLever.EnumLeverPosition.class);
+@@ -155,6 +157,20 @@
+ if (world.isClientSide) {
return true;
} else {
+ // CraftBukkit start - Interact Lever
-+ boolean powered = (Boolean)iblockdata.get(POWERED);
++ boolean powered = iblockdata.get(POWERED);
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
+ int old = (powered) ? 15 : 0;
+ int current = (!powered) ? 15 : 0;
@@ -26,7 +26,7 @@
+ return true;
+ }
+ // CraftBukkit end
-+
++
iblockdata = iblockdata.a(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);