idk remove inconsistency when client/server outdated (#11560)

* Fix server ping never timing out when out of range gamemode is returned by server

* dunno why there were empty strings

---------

Co-authored-by: 1ue999 <1ue999owo@gmail.com>
This commit is contained in:
1ue999
2026-01-16 04:57:56 +01:00
committed by GitHub
parent f4fb105adc
commit 91b52f34a7

View File

@@ -740,10 +740,10 @@ public class JoinDialog extends BaseDialog{
return Core.bundle.get("server.outdated");
}else if(host.version < Version.build && Version.build != -1){
return Core.bundle.get("server.outdated") + "\n" +
Core.bundle.format("server.version", host.version, "");
Core.bundle.format("server.version", host.version, host.versionType);
}else if(host.version > Version.build && Version.build != -1){
return Core.bundle.get("server.outdated.client") + "\n" +
Core.bundle.format("server.version", host.version, "");
Core.bundle.format("server.version", host.version, host.versionType);
}else if(host.version == Version.build && Version.type.equals(host.versionType)){
//not important
return "";