Skip to content

Commit 0e3139a

Browse files
Update GameNetworkManager.cs
1 parent f78f42f commit 0e3139a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

GameNetworkManager.cs

+9-11
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,18 @@ public async Task<bool> RefreshLobbies(int maxResults = 20)
106106
{
107107
Lobbies.Clear();
108108

109-
var lobbies = await SteamMatchmaking.LobbyList
110-
.WithKeyValue("game", "apex_point")
109+
var lobbies = await SteamMatchmaking.LobbyList
111110
.FilterDistanceClose()
112-
.WithMaxResults(maxResults)
113-
.RequestAsync();
111+
.WithMaxResults(maxResults)
112+
.RequestAsync();
114113

115-
if (lobbies != null)
116-
{
117-
for (int i = 0; i < lobbies.Length; i++)
118-
Lobbies.Add(lobbies[i]);
119-
}
114+
if (lobbies != null)
115+
{
116+
for (int i = 0; i < lobbies.Length; i++)
117+
Lobbies.Add(lobbies[i]);
118+
}
120119

121-
return true;
120+
return true;
122121
}
123122
catch (System.Exception ex)
124123
{
@@ -175,7 +174,6 @@ private void OnLobbyCreated(Result result, Lobby lobby)
175174
}
176175

177176
lobby.SetFriendsOnly(); // Set to friends only!
178-
lobby.SetData("game", "apex_point");
179177
lobby.SetData("name", "Random Cool Lobby");
180178
lobby.SetJoinable(true);
181179

0 commit comments

Comments
 (0)