Skip invalid lobbies

This commit is contained in:
Anuken 2021-03-31 09:52:31 -04:00
parent 6ebabbb56a
commit d548a11c60
2 changed files with 2 additions and 1 deletions

View File

@ -321,6 +321,7 @@ 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;
Host out = new Host(
-1, //invalid ping
smat.getLobbyData(lobby, "name"),

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=1973bc050404bd7a0da9d07404e02d0255b22358
archash=0e99b0291f81d74d335dca8b0cf3bf26931f1197