mirror of https://github.com/ppy/osu
Merge pull request #7278 from peppy/fix-score-serialisation
Fix score serialisation failing for unknown mod properties
This commit is contained in:
commit
ed856851a1
|
@ -89,7 +89,7 @@ public string ModsJson
|
|||
if (mods == null)
|
||||
return null;
|
||||
|
||||
return modsJson = JsonConvert.SerializeObject(mods);
|
||||
return modsJson = JsonConvert.SerializeObject(mods.Select(m => new DeserializedMod { Acronym = m.Acronym }));
|
||||
}
|
||||
set
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue