1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:42:56 +08:00

Don't attempt to load content when not online

This commit is contained in:
Dean Herbert 2021-04-06 17:12:00 +09:00
parent 899d708dac
commit 3113eefcf6

View File

@ -184,7 +184,7 @@ namespace osu.Game.Screens.Select
}
// for now, let's early abort if an OnlineBeatmapID is not present (should have been populated at import time).
if (Beatmap?.OnlineBeatmapID == null)
if (Beatmap?.OnlineBeatmapID == null || api.State.Value == APIState.Offline)
{
updateMetrics();
return;