Fixed #5418
This commit is contained in:
@@ -323,13 +323,14 @@ public class Control implements ApplicationListener, Loadable{
|
||||
if(slot != null && !clearSectors){
|
||||
|
||||
try{
|
||||
boolean hadNoCore = !sector.info.hasCore;
|
||||
reloader.begin();
|
||||
slot.load();
|
||||
slot.setAutosave(true);
|
||||
state.rules.sector = sector;
|
||||
|
||||
//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
|
||||
if(sector.info.spawnPosition == 0){
|
||||
|
||||
@@ -61,6 +61,8 @@ public class ItemLiquidGenerator extends PowerGenerator{
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
emitLight = true;
|
||||
lightRadius = 65f * size;
|
||||
if(!defaults){
|
||||
setDefaults();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user