mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Use existing star difficulty if non-local beatmap/ruleset
This commit is contained in:
@ -209,7 +209,8 @@ namespace osu.Game.Beatmaps
|
|||||||
// Difficulty can only be computed if the beatmap and ruleset are locally available.
|
// Difficulty can only be computed if the beatmap and ruleset are locally available.
|
||||||
if (beatmapInfo.ID == 0 || rulesetInfo.ID == null)
|
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;
|
key = default;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user