Diodes can work on the wrong tream (#7698)
* Diodes can work on the wrong tream * Don't need that check anymore
This commit is contained in:
@@ -56,7 +56,7 @@ public class PowerDiode extends Block{
|
|||||||
public void updateTile(){
|
public void updateTile(){
|
||||||
super.updateTile();
|
super.updateTile();
|
||||||
|
|
||||||
if(tile == null || front() == null || back() == null || !back().block.hasPower || !front().block.hasPower || back().team != front().team) return;
|
if(tile == null || front() == null || back() == null || !back().block.hasPower || !front().block.hasPower || back().team != team || front().team != team) return;
|
||||||
|
|
||||||
PowerGraph backGraph = back().power.graph;
|
PowerGraph backGraph = back().power.graph;
|
||||||
PowerGraph frontGraph = front().power.graph;
|
PowerGraph frontGraph = front().power.graph;
|
||||||
|
|||||||
Reference in New Issue
Block a user