Fixed #5418
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user