1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 21:13:20 +08:00

Fix DB serialisation

This commit is contained in:
smoogipoo 2021-04-12 20:49:37 +09:00
parent 982d8fa8b1
commit 625484468e

View File

@ -105,8 +105,9 @@ namespace osu.Game.Scoring
}
// Used for database serialisation/deserialisation.
[JsonIgnore]
[Column("Mods")]
private string modsString
public string ModsString
{
get => JsonConvert.SerializeObject(apiMods);
set => apiMods = JsonConvert.DeserializeObject<APIMod[]>(value);