mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-06 08:57:45 +07:00
Random server order
This commit is contained in:
parent
c2262cc9cf
commit
31cb169002
@ -599,6 +599,7 @@ public class JoinDialog extends BaseDialog{
|
||||
});
|
||||
//modify default servers on main thread
|
||||
Core.app.post(() -> {
|
||||
servers.sort(s -> s.name == null ? Integer.MAX_VALUE : s.name.hashCode());
|
||||
defaultServers.addAll(servers);
|
||||
Log.info("Fetched @ community servers.", defaultServers.size);
|
||||
});
|
||||
|
@ -116,8 +116,6 @@ public class ServerControl implements ApplicationListener{
|
||||
|
||||
registerCommands();
|
||||
|
||||
|
||||
|
||||
Core.app.post(() -> {
|
||||
//try to load auto-update save if possible
|
||||
if(Config.autoUpdate.bool()){
|
||||
|
Loading…
Reference in New Issue
Block a user