mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 04:09:54 +01:00
Fix diodes not updating indirect neighbors.
This commit is contained in:
parent
3b46222c54
commit
39935eb3f2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user