Random server order

This commit is contained in:
Anuken
2023-02-01 15:20:34 -05:00
parent c2262cc9cf
commit 31cb169002
2 changed files with 1 additions and 2 deletions

View File

@@ -599,6 +599,7 @@ public class JoinDialog extends BaseDialog{
}); });
//modify default servers on main thread //modify default servers on main thread
Core.app.post(() -> { Core.app.post(() -> {
servers.sort(s -> s.name == null ? Integer.MAX_VALUE : s.name.hashCode());
defaultServers.addAll(servers); defaultServers.addAll(servers);
Log.info("Fetched @ community servers.", defaultServers.size); Log.info("Fetched @ community servers.", defaultServers.size);
}); });

View File

@@ -116,8 +116,6 @@ public class ServerControl implements ApplicationListener{
registerCommands(); registerCommands();
Core.app.post(() -> { Core.app.post(() -> {
//try to load auto-update save if possible //try to load auto-update save if possible
if(Config.autoUpdate.bool()){ if(Config.autoUpdate.bool()){