Fixed abandoning sectors not working

This commit is contained in:
Anuken
2025-09-07 14:22:55 -04:00
parent 94743b4ba6
commit 9f7ba9bb98
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -493,8 +493,10 @@ public class Control implements ApplicationListener, Loadable{
} }
for(var build : previousBuildings){ for(var build : previousBuildings){
if(build.isValid()){
build.updateProximity(); build.updateProximity();
} }
}
//carry over all previous plans that don't already have the corresponding block at their position //carry over all previous plans that don't already have the corresponding block at their position
for(var plan : previousPlans){ for(var plan : previousPlans){
@@ -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{ }else{
state.set(State.playing); state.set(State.playing);
@@ -1122,7 +1122,10 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
} }
}); });
}else{ }else{
sector.info.items.clear();
sector.info.damage = 1f;
sector.info.hasCore = false; sector.info.hasCore = false;
sector.info.production.clear();
sector.saveInfo(); sector.saveInfo();
} }
updateSelected(); updateSelected();