Fixed abandoning sectors not working
This commit is contained in:
@@ -493,7 +493,9 @@ public class Control implements ApplicationListener, Loadable{
|
||||
}
|
||||
|
||||
for(var build : previousBuildings){
|
||||
build.updateProximity();
|
||||
if(build.isValid()){
|
||||
build.updateProximity();
|
||||
}
|
||||
}
|
||||
|
||||
//carry over all previous plans that don't already have the corresponding block at their position
|
||||
@@ -504,6 +506,9 @@ public class Control implements ApplicationListener, Loadable{
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//blocks placed after WorldLoadEvent didn't queue an update, so fix that.
|
||||
renderer.minimap.updateAll();
|
||||
}
|
||||
}else{
|
||||
state.set(State.playing);
|
||||
|
||||
@@ -1122,7 +1122,10 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
}
|
||||
});
|
||||
}else{
|
||||
sector.info.items.clear();
|
||||
sector.info.damage = 1f;
|
||||
sector.info.hasCore = false;
|
||||
sector.info.production.clear();
|
||||
sector.saveInfo();
|
||||
}
|
||||
updateSelected();
|
||||
|
||||
Reference in New Issue
Block a user