Allow any version to join hidden steam lobbies (#11770)

This commit is contained in:
buthed010203 2026-03-20 11:32:53 -04:00 committed by GitHub
parent 84c03b3bc0
commit 5aebcdca58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,9 +270,10 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
}
int version = Strings.parseInt(smat.getLobbyData(steamIDLobby, "version"), -1);
boolean hidden = smat.getLobbyData(steamIDLobby, "hidden").equals("true");
//check version
if(version != Version.build){
if(version != Version.build && !hidden){
ui.loadfrag.hide();
ui.showInfo("[scarlet]" + (version > Version.build ? KickReason.clientOutdated : KickReason.serverOutdated) + "\n[]" +
Core.bundle.format("server.versions", Version.build, version));