Merge branch 'master' of https://github.com/Anuken/Mindustry into 7.0-features
This commit is contained in:
@@ -1294,6 +1294,14 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
}
|
||||
|
||||
public void pickedUp(){
|
||||
if(power != null){
|
||||
if(power.graph != null){
|
||||
power.graph.removeList(self());
|
||||
power.graph = new PowerGraph();
|
||||
}
|
||||
power.links.clear();
|
||||
power.status = 0f;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user