mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Redstone fixes
This commit is contained in:
parent
9428907e62
commit
803e67d55d
1 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ public class BlockRedstoneWire extends Block {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private int g(World world, int i, int j, int k, int l) {
|
public int g(World world, int i, int j, int k, int l) { //Craftbukkit made public
|
||||||
if (world.getTypeId(i, j, k) != this.id) {
|
if (world.getTypeId(i, j, k) != this.id) {
|
||||||
return l;
|
return l;
|
||||||
} else {
|
} else {
|
||||||
|
@ -280,7 +280,7 @@ public class BlockRedstoneWire extends Block {
|
||||||
if (!flag) {
|
if (!flag) {
|
||||||
this.b_(world, i, j, k, i1);
|
this.b_(world, i, j, k, i1);
|
||||||
world.e(i, j, k, 0);
|
world.e(i, j, k, 0);
|
||||||
} else {
|
} else if(Block.byId[l].c() || Block.DIODE_OFF.id == l && Block.DIODE_ON.id == l) { //condition added by Craftbukkit
|
||||||
this.g(world, i, j, k);
|
this.g(world, i, j, k);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue