1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:20:04 +08:00

Merge pull request #7278 from peppy/fix-score-serialisation

Fix score serialisation failing for unknown mod properties
This commit is contained in:
Dan Balasescu 2019-12-19 15:25:43 +09:00 committed by GitHub
commit ed856851a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ namespace osu.Game.Scoring
if (mods == null)
return null;
return modsJson = JsonConvert.SerializeObject(mods);
return modsJson = JsonConvert.SerializeObject(mods.Select(m => new DeserializedMod { Acronym = m.Acronym }));
}
set
{