mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-23 07:11:16 -07:00
Allow any version to join hidden steam lobbies (#11770)
This commit is contained in:
parent
84c03b3bc0
commit
5aebcdca58
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue