Random server order
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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()){
|
||||||
|
|||||||
Reference in New Issue
Block a user