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:
MEEPofFaith 2022-10-12 04:57:08 -07:00 committed by GitHub
parent 6def8f5281
commit 201ce276cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ public class PowerDiode extends Block{
public void 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 frontGraph = front().power.graph;