mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Hide outdated lobbies on Steam
This commit is contained in:
parent
bcdc8867e6
commit
96622848d9
1 changed files with 2 additions and 1 deletions
|
|
@ -303,7 +303,8 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||
try{
|
||||
SteamID lobby = smat.getLobbyByIndex(i);
|
||||
String mode = smat.getLobbyData(lobby, "gamemode");
|
||||
if(mode == null || mode.isEmpty() || Strings.parseInt(smat.getLobbyData(lobby, "version"), -1) == -1) continue;
|
||||
//make sure versions are equal, don't list incompatible lobbies
|
||||
if(mode == null || mode.isEmpty() || (Version.build != -1 && Strings.parseInt(smat.getLobbyData(lobby, "version"), -1) != Version.build)) continue;
|
||||
Host out = new Host(
|
||||
-1, //invalid ping
|
||||
smat.getLobbyData(lobby, "name"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue