mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 02:32:59 +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);
|
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)
|
if (token.IsCancellationRequested)
|
||||||
return default;
|
return default;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user