mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-31 09:54:57 +07:00
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:
parent
6def8f5281
commit
201ce276cd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user