1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +08:00

Use empty string instead of empty array for ModsJson when no mods are present

Not really correct, but this is how most scores have been stored until
now so let's do this for consistency.
This commit is contained in:
Dean Herbert 2022-01-19 14:28:16 +09:00
parent bb6f40d16e
commit 18886f5d2e

View File

@ -234,7 +234,9 @@ namespace osu.Game.Scoring
private void updateModsJson()
{
ModsJson = JsonConvert.SerializeObject(APIMods);
ModsJson = APIMods.Length > 0
? JsonConvert.SerializeObject(APIMods)
: string.Empty;
}
public IEnumerable<HitResultDisplayStatistic> GetStatisticsForDisplay()