mirror of
https://github.com/osukey/osukey.git
synced 2025-05-24 15:07:20 +09:00
Return default beatmap if local beatmap can't be retrieved
This commit is contained in:
parent
ff2f3a8484
commit
6afd6efdeb
@ -240,6 +240,9 @@ namespace osu.Game.Beatmaps
|
|||||||
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);
|
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (beatmapInfo == null)
|
||||||
|
return DefaultBeatmap;
|
||||||
|
|
||||||
lock (workingCache)
|
lock (workingCache)
|
||||||
{
|
{
|
||||||
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == beatmapInfo.ID);
|
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == beatmapInfo.ID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user