Remove redundant block != null check

This commit is contained in:
Patrick 'Quezler' Mounier
2019-10-31 18:03:06 +01:00
parent 3c6b2c9dbb
commit c877f6e04f

View File

@@ -27,7 +27,6 @@ public class PowerDiode extends Block{
Tile back = getNearby(tile, (tile.rotation() + 2) % 4);
Tile front = getNearby(tile, tile.rotation());
if(back.block() == null || front.block() == null) return;
if(!back.block().hasPower || !front.block().hasPower) return;
PowerGraph backGraph = back.entity.power.graph;