mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Don't calculate performance if difficulty attributes aren't locally computable.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user