Skip to content

Commit

Permalink
filter out empty lobbies
Browse files Browse the repository at this point in the history
  • Loading branch information
xzxADIxzx committed Mar 13, 2024
1 parent 3f72c8c commit 276ae2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Jaket/Net/LobbyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public static void FetchLobbies(Action<Lobby[]> done)
task.GetAwaiter().OnCompleted(() =>
{
FetchingLobbies = false;
done(task.Result);
done(task.Result.Where(l => l.Data.Any(pair => pair.Key == "jaket" || pair.Key == "mk_lobby")).ToArray());
});
}

Expand All @@ -240,10 +240,10 @@ public static void FetchLobbies(Action<Lobby[]> done)
{
"Tutorial" => "Tutorial",
"uk_construct" => "Sandbox",
"Endless" => "Myth",
"Endless" => "Cyber Grind",
"CreditsMuseum2" => "Museum",
_ => map.Substring("Level ".Length)
};

#endregion
}
}

0 comments on commit 276ae2a

Please sign in to comment.