1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 07:02:54 +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). // 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(); updateMetrics();
return; return;