Fixed #6272
This commit is contained in:
@@ -1294,10 +1294,15 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void pickedUp(){
|
public void pickedUp(){
|
||||||
power.graph.removeList(self());
|
if(power != null){
|
||||||
power.graph = new PowerGraph();
|
if(power.graph != null){
|
||||||
power.links.clear();
|
power.graph.removeList(self());
|
||||||
power.status = 0f;
|
power.graph = new PowerGraph();
|
||||||
|
}
|
||||||
|
power.links.clear();
|
||||||
|
power.status = 0f;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeFromProximity(){
|
public void removeFromProximity(){
|
||||||
|
|||||||
Reference in New Issue
Block a user