Made 'custom' the default shuffle mode for backwards compat

This commit is contained in:
Anuken
2019-11-21 20:42:57 -05:00
parent f162d815fe
commit b8e3b70fcc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -457,7 +457,7 @@ public class Maps{
return maps.find(m -> m != prev || maps.size == 1); return maps.find(m -> m != prev || maps.size == 1);
}), }),
custom(prev -> { custom(prev -> {
Array<Map> maps = Array.withArrays(Vars.maps.customMaps()); Array<Map> maps = Array.withArrays(Vars.maps.customMaps().isEmpty() ? Vars.maps.defaultMaps() : Vars.maps.customMaps());
maps.shuffle(); maps.shuffle();
return maps.find(m -> m != prev || maps.size == 1); return maps.find(m -> m != prev || maps.size == 1);
}), }),
@@ -60,7 +60,7 @@ public class ServerControl implements ApplicationListener{
"shufflemode", "normal", "shufflemode", "normal",
"bans", "", "bans", "",
"admins", "", "admins", "",
"shufflemode", "all", "shufflemode", "custom",
"crashreport", false, "crashreport", false,
"port", port, "port", port,
"logging", true, "logging", true,