mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 05:53:10 +08:00
Don't calculate performance if difficulty attributes aren't locally computable.
This commit is contained in:
parent
fa201be2ad
commit
6459ce28a3
@ -43,6 +43,10 @@ namespace osu.Game.Scoring
|
||||
{
|
||||
var attributes = await difficultyManager.GetDifficultyAsync(score.Beatmap, score.Ruleset, score.Mods, token);
|
||||
|
||||
// Performance calculation requires the beatmap and ruleset to be locally available. If not, return a default value.
|
||||
if (attributes.Attributes == null)
|
||||
return default;
|
||||
|
||||
if (token.IsCancellationRequested)
|
||||
return default;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user