diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-02-20 17:40:40 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-02-20 18:15:17 +0100 |
commit | 09026095b69a25c59fd5b360442c7fa0bd390f4f (patch) | |
tree | df0b281da8677a182f34663d5945709936b5b769 /src/main/java/net/minecraft/server/BlockButton.java | |
parent | 6e3ee31336dcec939139cc97cab11d98fb99145d (diff) | |
download | craftbukkit-09026095b69a25c59fd5b360442c7fa0bd390f4f.tar craftbukkit-09026095b69a25c59fd5b360442c7fa0bd390f4f.tar.gz craftbukkit-09026095b69a25c59fd5b360442c7fa0bd390f4f.tar.lz craftbukkit-09026095b69a25c59fd5b360442c7fa0bd390f4f.tar.xz craftbukkit-09026095b69a25c59fd5b360442c7fa0bd390f4f.zip |
Minor cleaning of code
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockButton.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockButton.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/BlockButton.java b/src/main/java/net/minecraft/server/BlockButton.java index c79766c4..f20a8818 100644 --- a/src/main/java/net/minecraft/server/BlockButton.java +++ b/src/main/java/net/minecraft/server/BlockButton.java @@ -249,8 +249,9 @@ public class BlockButton extends Block { CraftBlock block = (CraftBlock) craftWorld.getBlockAt(i, j, k); BlockRedstoneEvent eventRedstone = new BlockRedstoneEvent(block, 1, 0); server.getPluginManager().callEvent(eventRedstone); - if(eventRedstone.getNewCurrent() > 0) return; + if (eventRedstone.getNewCurrent() > 0) return; // Craftbukkit end + world.c(i, j, k, l & 7); world.h(i, j, k, this.id); int i1 = l & 7; |