1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Improve Code Quality

This commit is contained in:
Fabian van Oeffelt 2023-09-25 17:51:39 +02:00
parent 2a3391d83b
commit 2040dcabe0

View File

@ -437,7 +437,7 @@ namespace osu.Game.Screens.OnlinePlay.Match
}
else
{
var localBeatmap = selected.Beatmap == null ? null : beatmapManager.QueryBeatmap(b => b.OnlineID == selected.Beatmap.OnlineID);
var localBeatmap = beatmapManager.QueryBeatmap(b => b.OnlineID == selected.Beatmap.OnlineID);
UserModsSelectOverlay.Beatmap = beatmapManager.GetWorkingBeatmap(localBeatmap);
UserModsSection?.Show();
UserModsSelectOverlay.IsValidMod = m => allowedMods.Any(a => a.GetType() == m.GetType());