mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Avoid errors being logged when importing beatmaps while logged out
This commit is contained in:
parent
87d69b93a6
commit
5d105cd08d
@ -390,6 +390,9 @@ namespace osu.Game.Beatmaps
|
|||||||
if (!force && beatmap.OnlineBeatmapID != null && beatmap.BeatmapSet.OnlineBeatmapSetID != null)
|
if (!force && beatmap.OnlineBeatmapID != null && beatmap.BeatmapSet.OnlineBeatmapSetID != null)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (api.State != APIState.Online)
|
||||||
|
return false;
|
||||||
|
|
||||||
Logger.Log("Attempting online lookup for IDs...", LoggingTarget.Database);
|
Logger.Log("Attempting online lookup for IDs...", LoggingTarget.Database);
|
||||||
|
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user