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:
parent
bb6f40d16e
commit
18886f5d2e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user