diff options
author | Tahg <tahgtahv@gmail.com> | 2011-03-14 00:47:41 -0400 |
---|---|---|
committer | Tahg <tahgtahv@gmail.com> | 2011-03-14 00:48:44 -0400 |
commit | 9869ace146889c5838fba1c6a91acd4aeb86a9bd (patch) | |
tree | e805f86cc6ea1259fefc1ae4ff2a898e1d222c71 /src/main | |
parent | 672b06727dcb2dd4546d051eea86893f40df086f (diff) | |
download | craftbukkit-9869ace146889c5838fba1c6a91acd4aeb86a9bd.tar craftbukkit-9869ace146889c5838fba1c6a91acd4aeb86a9bd.tar.gz craftbukkit-9869ace146889c5838fba1c6a91acd4aeb86a9bd.tar.lz craftbukkit-9869ace146889c5838fba1c6a91acd4aeb86a9bd.tar.xz craftbukkit-9869ace146889c5838fba1c6a91acd4aeb86a9bd.zip |
fixed redstone torches
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/World.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 2decd5f9..93888775 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -289,21 +289,27 @@ public class World implements IBlockAccess { } public boolean e(int i, int j, int k, int l) { + // Craftbukkit start + int old = this.getTypeId(i, j, k); if (this.setTypeId(i, j, k, l)) { - this.f(i, j, k, l); + this.f(i, j, k, l == 0 ? old : l); return true; } else { return false; } + // Craftbukkit end } public boolean b(int i, int j, int k, int l, int i1) { + // Craftbukkit start + int old = this.getTypeId(i, j, k); if (this.setTypeIdAndData(i, j, k, l, i1)) { - this.f(i, j, k, l); + this.f(i, j, k, l == 0 ? old : l); return true; } else { return false; } + // Craftbukkit end } public void g(int i, int j, int k) { |