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

View File

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