mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 15:44:49 +01:00
NPE fix in redstone
This commit is contained in:
parent
c06f3e0d76
commit
786fdfb9fe
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ public class BlockRedstoneWire extends Block {
|
|||
if (!flag) {
|
||||
this.b_(world, i, j, k, i1);
|
||||
world.e(i, j, k, 0);
|
||||
} else if(Block.byId[l].c() || Block.DIODE_OFF.id == l && Block.DIODE_ON.id == l) { //condition added by Craftbukkit
|
||||
} else if((Block.byId[l] != null && Block.byId[l].c()) || Block.DIODE_OFF.id == l && Block.DIODE_ON.id == l) { //condition added by Craftbukkit
|
||||
this.g(world, i, j, k);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue