mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 11:02:54 +08:00
Fix DB serialisation
This commit is contained in:
parent
982d8fa8b1
commit
625484468e
@ -105,8 +105,9 @@ namespace osu.Game.Scoring
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Used for database serialisation/deserialisation.
|
// Used for database serialisation/deserialisation.
|
||||||
|
[JsonIgnore]
|
||||||
[Column("Mods")]
|
[Column("Mods")]
|
||||||
private string modsString
|
public string ModsString
|
||||||
{
|
{
|
||||||
get => JsonConvert.SerializeObject(apiMods);
|
get => JsonConvert.SerializeObject(apiMods);
|
||||||
set => apiMods = JsonConvert.DeserializeObject<APIMod[]>(value);
|
set => apiMods = JsonConvert.DeserializeObject<APIMod[]>(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user