mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 23:28:52 +07:00
Power distribution fix
This commit is contained in:
parent
5c4ac6b702
commit
14c526d0c4
@ -282,7 +282,7 @@ public class PowerNode extends PowerBlock{
|
||||
}
|
||||
|
||||
protected boolean linkValid(Tile tile, Tile link, boolean checkMaxNodes){
|
||||
if(!(tile != link && link != null && link.block().hasPower)) return false;
|
||||
if(!(tile != link && link != null && link.block().hasPower) || tile.getTeamID() != link.getTeamID()) return false;
|
||||
|
||||
if(link.block() instanceof PowerNode){
|
||||
DistributorEntity oe = link.entity();
|
||||
|
Loading…
Reference in New Issue
Block a user