mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 07:19:54 +08:00
Throw an exception if we try and retrieve local scores online
This commit is contained in:
@@ -36,6 +36,9 @@ namespace osu.Game.Online.API.Requests
|
||||
if (!beatmap.OnlineBeatmapID.HasValue)
|
||||
throw new InvalidOperationException($"Cannot lookup a beatmap's scores without having a populated {nameof(BeatmapInfo.OnlineBeatmapID)}.");
|
||||
|
||||
if (scope == LeaderboardScope.Local)
|
||||
throw new InvalidOperationException("Should not attempt to request online scores for a local scoped leaderboard");
|
||||
|
||||
this.beatmap = beatmap;
|
||||
this.scope = scope;
|
||||
this.ruleset = ruleset;
|
||||
|
||||
Reference in New Issue
Block a user