mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 13:08:20 +07:00
Skip invalid lobbies
This commit is contained in:
parent
6ebabbb56a
commit
d548a11c60
@ -321,6 +321,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
try{
|
try{
|
||||||
SteamID lobby = smat.getLobbyByIndex(i);
|
SteamID lobby = smat.getLobbyByIndex(i);
|
||||||
String mode = smat.getLobbyData(lobby, "gamemode");
|
String mode = smat.getLobbyData(lobby, "gamemode");
|
||||||
|
if(mode == null || mode.isEmpty() || Strings.parseInt(smat.getLobbyData(lobby, "version"), -1) == -1) continue;
|
||||||
Host out = new Host(
|
Host out = new Host(
|
||||||
-1, //invalid ping
|
-1, //invalid ping
|
||||||
smat.getLobbyData(lobby, "name"),
|
smat.getLobbyData(lobby, "name"),
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=1973bc050404bd7a0da9d07404e02d0255b22358
|
archash=0e99b0291f81d74d335dca8b0cf3bf26931f1197
|
||||||
|
Loading…
Reference in New Issue
Block a user