This commit is contained in:
Anuken
2021-10-30 21:02:45 -04:00
parent c0d8ce2803
commit a3f4dc7d1d

View File

@@ -1294,10 +1294,15 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
}
public void pickedUp(){
power.graph.removeList(self());
power.graph = new PowerGraph();
power.links.clear();
power.status = 0f;
if(power != null){
if(power.graph != null){
power.graph.removeList(self());
power.graph = new PowerGraph();
}
power.links.clear();
power.status = 0f;
}
}
public void removeFromProximity(){