summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2012-01-24 18:03:34 -0500
committerTahg <tahgtahv@gmail.com>2012-01-24 18:03:34 -0500
commit39935eb3f28f0d7c8ac1ddccff7897fcfb988194 (patch)
tree9590d8711e05cd26c01418c0cdfde4fdb540d938
parent3b46222c54977031db68a40d1345b29fbb69463c (diff)
downloadcraftbukkit-39935eb3f28f0d7c8ac1ddccff7897fcfb988194.tar
craftbukkit-39935eb3f28f0d7c8ac1ddccff7897fcfb988194.tar.gz
craftbukkit-39935eb3f28f0d7c8ac1ddccff7897fcfb988194.tar.lz
craftbukkit-39935eb3f28f0d7c8ac1ddccff7897fcfb988194.tar.xz
craftbukkit-39935eb3f28f0d7c8ac1ddccff7897fcfb988194.zip
Fix diodes not updating indirect neighbors.
-rw-r--r--src/main/java/net/minecraft/server/BlockDiode.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/BlockDiode.java b/src/main/java/net/minecraft/server/BlockDiode.java
index 3ceffb12..b080c28e 100644
--- a/src/main/java/net/minecraft/server/BlockDiode.java
+++ b/src/main/java/net/minecraft/server/BlockDiode.java
@@ -32,8 +32,10 @@ public class BlockDiode extends Block {
if (this.c && !flag) {
world.setTypeIdAndData(i, j, k, Block.DIODE_OFF.id, l);
+ this.postPlace(world, i, j, k, this.id); // CraftBukkit - update indirect neighbors
} else if (!this.c) {
world.setTypeIdAndData(i, j, k, Block.DIODE_ON.id, l);
+ this.postPlace(world, i, j, k, this.id); // CraftBukkit - update indirect neighbors
if (!flag) {
int i1 = (l & 12) >> 2;