From d548a11c600ad9059deb1d6a99489be5e5fdc2ec Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 31 Mar 2021 09:52:31 -0400 Subject: [PATCH] Skip invalid lobbies --- desktop/src/mindustry/desktop/steam/SNet.java | 1 + gradle.properties | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/src/mindustry/desktop/steam/SNet.java b/desktop/src/mindustry/desktop/steam/SNet.java index 2f9fc1ffdb..d016cac1a4 100644 --- a/desktop/src/mindustry/desktop/steam/SNet.java +++ b/desktop/src/mindustry/desktop/steam/SNet.java @@ -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"), diff --git a/gradle.properties b/gradle.properties index 3eceb12a25..58e5ea67dc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ org.gradle.daemon=true org.gradle.jvmargs=-Xms256m -Xmx1024m -archash=1973bc050404bd7a0da9d07404e02d0255b22358 +archash=0e99b0291f81d74d335dca8b0cf3bf26931f1197