1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 06:27:18 +08:00

Fix legacy score imports not correctly getting classic mod assigned

This commit is contained in:
Dean Herbert 2022-01-19 14:17:56 +09:00
parent 581873f944
commit 664b4fdaf0

View File

@ -191,9 +191,8 @@ namespace osu.Game.Scoring
}
set
{
apiMods = null;
clearAllMods();
mods = value;
updateModsJson();
}
}
@ -220,14 +219,19 @@ namespace osu.Game.Scoring
}
set
{
clearAllMods();
apiMods = value;
mods = null;
// We potentially can't update this yet due to Ruleset being late-bound, so instead update on read as necessary.
updateModsJson();
}
}
private void clearAllMods()
{
ModsJson = string.Empty;
mods = null;
apiMods = null;
}
private void updateModsJson()
{
ModsJson = JsonConvert.SerializeObject(APIMods);