From fe4d5db0e0382faa10e95abb0c4d47a0823deefe Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Fri, 14 Jan 2011 16:11:04 +0000 Subject: Fixed levers + buttons --- src/main/java/net/minecraft/server/BlockButton.java | 2 +- src/main/java/net/minecraft/server/BlockLever.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/BlockButton.java b/src/main/java/net/minecraft/server/BlockButton.java index 1e5c9c85..e17824b7 100644 --- a/src/main/java/net/minecraft/server/BlockButton.java +++ b/src/main/java/net/minecraft/server/BlockButton.java @@ -167,7 +167,7 @@ public class BlockButton extends Block { int current = (j1 == 8) ? 1 : 0; BlockRedstoneEvent bre = new BlockRedstoneEvent(block, BlockFace.Self, old, current); ((WorldServer) world).getServer().getPluginManager().callEvent(bre); - if ((bre.getNewCurrent() > 0) == (k == 8)) { + if ((bre.getNewCurrent() > 0) == (j1 == 8)) { world.c(i, j, k, i1 + j1); world.b(i, j, k, i, j, k); world.a((double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D, "random.click", 0.3F, 0.6F); diff --git a/src/main/java/net/minecraft/server/BlockLever.java b/src/main/java/net/minecraft/server/BlockLever.java index 30ee8f5d..a7ddac37 100644 --- a/src/main/java/net/minecraft/server/BlockLever.java +++ b/src/main/java/net/minecraft/server/BlockLever.java @@ -168,7 +168,7 @@ public class BlockLever extends Block { ((WorldServer) world).getServer().getPluginManager().callEvent(bre); // Craftbukkit end - if ((bre.getNewCurrent() > 0) == (k == 8)) { + if ((bre.getNewCurrent() > 0) == (j1 == 8)) { world.c(i, j, k, i1 + j1); world.b(i, j, k, i, j, k); world.a((double) i + 0.5D, (double) j + 0.5D, (double) k + 0.5D, "random.click", 0.3F, j1 <= 0 ? 0.5F : 0.6F); -- cgit v1.2.3