Fixed #4463
This commit is contained in:
@@ -292,6 +292,16 @@ public class PowerGraph{
|
||||
}
|
||||
}
|
||||
|
||||
/** Used for unit tests only. */
|
||||
public void removeList(Building build){
|
||||
all.remove(build);
|
||||
producers.remove(build);
|
||||
consumers.remove(build);
|
||||
batteries.remove(build);
|
||||
}
|
||||
|
||||
/** Note that this does not actually remove the building from the graph;
|
||||
* it creates *new* graphs that contain the correct buildings. */
|
||||
public void remove(Building tile){
|
||||
|
||||
//go through all the connections of this tile
|
||||
|
||||
Reference in New Issue
Block a user