mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Fixed #12214
This commit is contained in:
@@ -1800,6 +1800,11 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
|
|
||||||
if(power != null && updatePower){
|
if(power != null && updatePower){
|
||||||
var oldGraph = power.graph;
|
var oldGraph = power.graph;
|
||||||
|
for(var other : proximity){
|
||||||
|
if(other != null && other.team != team && other.power != null && other.power.graph == oldGraph){
|
||||||
|
new PowerGraph().reflow(other);
|
||||||
|
}
|
||||||
|
}
|
||||||
for(int i = 0; i < power.links.size; i++){
|
for(int i = 0; i < power.links.size; i++){
|
||||||
var other = world.build(power.links.items[i]);
|
var other = world.build(power.links.items[i]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user