This commit is contained in:
Anuken
2021-06-13 10:12:50 -04:00
parent 347b38ba26
commit 5601f97266
2 changed files with 4 additions and 1 deletions

View File

@@ -323,13 +323,14 @@ public class Control implements ApplicationListener, Loadable{
if(slot != null && !clearSectors){ if(slot != null && !clearSectors){
try{ try{
boolean hadNoCore = !sector.info.hasCore;
reloader.begin(); reloader.begin();
slot.load(); slot.load();
slot.setAutosave(true); slot.setAutosave(true);
state.rules.sector = sector; state.rules.sector = sector;
//if there is no base, simulate a new game and place the right loadout at the spawn position //if there is no base, simulate a new game and place the right loadout at the spawn position
if(state.rules.defaultTeam.cores().isEmpty()){ if(state.rules.defaultTeam.cores().isEmpty() || hadNoCore){
//no spawn set -> delete the sector save //no spawn set -> delete the sector save
if(sector.info.spawnPosition == 0){ if(sector.info.spawnPosition == 0){

View File

@@ -61,6 +61,8 @@ public class ItemLiquidGenerator extends PowerGenerator{
@Override @Override
public void init(){ public void init(){
emitLight = true;
lightRadius = 65f * size;
if(!defaults){ if(!defaults){
setDefaults(); setDefaults();
} }