mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 07:07:03 +07:00
oh no
This commit is contained in:
parent
d35fbb8383
commit
c05fb7ebf1
@ -148,7 +148,7 @@ public class ServerControl implements ApplicationListener{
|
||||
maps.shuffle();
|
||||
|
||||
Map previous = world.getMap();
|
||||
Map map = maps.find(m -> m != previous);
|
||||
Map map = maps.find(m -> m != previous || maps.size == 1);
|
||||
|
||||
if(map != null){
|
||||
|
||||
@ -161,6 +161,8 @@ public class ServerControl implements ApplicationListener{
|
||||
info("Selected next map to be {0}.", map.name());
|
||||
|
||||
play(true, () -> world.loadMap(map, map.applyRules(lastMode)));
|
||||
}else{
|
||||
Log.err("No suitable map found.");
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user