mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-05 00:17:33 +07:00
Fixed local games sometimes not being found on Steam
This commit is contained in:
parent
179cedd6cc
commit
6ebabbb56a
@ -320,6 +320,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
for(int i = 0; i < matches; i++){
|
for(int i = 0; i < matches; i++){
|
||||||
try{
|
try{
|
||||||
SteamID lobby = smat.getLobbyByIndex(i);
|
SteamID lobby = smat.getLobbyByIndex(i);
|
||||||
|
String mode = smat.getLobbyData(lobby, "gamemode");
|
||||||
Host out = new Host(
|
Host out = new Host(
|
||||||
-1, //invalid ping
|
-1, //invalid ping
|
||||||
smat.getLobbyData(lobby, "name"),
|
smat.getLobbyData(lobby, "name"),
|
||||||
@ -329,7 +330,7 @@ public class SNet implements SteamNetworkingCallback, SteamMatchmakingCallback,
|
|||||||
smat.getNumLobbyMembers(lobby),
|
smat.getNumLobbyMembers(lobby),
|
||||||
Strings.parseInt(smat.getLobbyData(lobby, "version"), -1),
|
Strings.parseInt(smat.getLobbyData(lobby, "version"), -1),
|
||||||
smat.getLobbyData(lobby, "versionType"),
|
smat.getLobbyData(lobby, "versionType"),
|
||||||
Gamemode.valueOf(smat.getLobbyData(lobby, "gamemode")),
|
mode == null || mode.isEmpty() ? Gamemode.survival : Gamemode.valueOf(mode),
|
||||||
smat.getLobbyMemberLimit(lobby),
|
smat.getLobbyMemberLimit(lobby),
|
||||||
"",
|
"",
|
||||||
null
|
null
|
||||||
|
Loading…
Reference in New Issue
Block a user