This commit is contained in:
Anuken
2025-05-16 14:14:09 -04:00
parent 4abbd1a0f8
commit adb7264bc4
@@ -381,12 +381,15 @@ public class ServerControl implements ApplicationListener{
} }
}else{ }else{
result = maps.getShuffleMode().next(preset, state.map); result = maps.getShuffleMode().next(preset, state.map);
if(result != null){
info("Randomized next map to be @.", result.plainName()); info("Randomized next map to be @.", result.plainName());
} }
}
info("Loading map..."); info("Loading map...");
logic.reset(); logic.reset();
if(result != null){
lastMode = preset; lastMode = preset;
Core.settings.put("lastServerMode", lastMode.name()); Core.settings.put("lastServerMode", lastMode.name());
try{ try{
@@ -400,6 +403,7 @@ public class ServerControl implements ApplicationListener{
}catch(MapException e){ }catch(MapException e){
err("@: @", e.map.plainName(), e.getMessage()); err("@: @", e.map.plainName(), e.getMessage());
} }
}
}); });
handler.register("maps", "[all/custom/default]", "Display available maps. Displays only custom maps by default.", arg -> { handler.register("maps", "[all/custom/default]", "Display available maps. Displays only custom maps by default.", arg -> {