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:
parent
899d708dac
commit
3113eefcf6
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user