Sort Steam server lists, ignore version when unimportant

This commit is contained in:
Anuken
2019-09-28 18:01:55 -04:00
parent a815763833
commit 2019196f65
2 changed files with 10 additions and 6 deletions

View File

@@ -202,11 +202,13 @@ public class JoinDialog extends FloatingDialog{
}else if(host.version > Version.build && Version.build != -1){
versionString = Core.bundle.get("server.outdated.client") + "\n" +
Core.bundle.format("server.version", host.version, "");
}else if(host.version == Version.build && Version.type.equals(host.versionType)){
//not important
versionString = "";
}else{
versionString = Core.bundle.format("server.version", host.version, host.versionType);
}
content.table(t -> {
t.add("[lightgray]" + host.name + " " + versionString).width(targetWidth() - 10f).left().get().setEllipsis(true);
t.row();