1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Use the local beatmap if existing, fixing player not loading objects

This commit is contained in:
smoogipoo 2018-12-14 16:11:00 +09:00
parent 83bf37a302
commit e3ad226075

View File

@ -141,7 +141,9 @@ namespace osu.Game.Screens.Multi.Match
info.Mods.Value = item.RequiredMods;
// Todo: item.Beatmap can be null here...
Beatmap.Value = beatmapManager.GetWorkingBeatmap(item.Beatmap);
var localBeatmap = beatmapManager.QueryBeatmap(b => b.OnlineBeatmapID == item.BeatmapID) ?? item.Beatmap;
Beatmap.Value = beatmapManager.GetWorkingBeatmap(localBeatmap);
}
private void onStart()