Use existing star difficulty if non-local beatmap/ruleset

This commit is contained in:
smoogipoo 2020-07-22 12:47:53 +09:00
parent 00e6217f60
commit aca4110e36
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ private bool tryGetGetExisting(BeatmapInfo beatmapInfo, RulesetInfo rulesetInfo,
// Difficulty can only be computed if the beatmap and ruleset are locally available.
if (beatmapInfo.ID == 0 || rulesetInfo.ID == null)
{
existingDifficulty = new StarDifficulty(0);
// If not, fall back to the existing star difficulty (e.g. from an online source).
existingDifficulty = new StarDifficulty(beatmapInfo.StarDifficulty);
key = default;
return true;