diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-14 13:03:57 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-14 13:03:57 -0500 |
commit | 9d1b6a1af2f21dff9904d03daaf6f1ce6409d7f8 (patch) | |
tree | 2e0c03e84f65382ae5c0b906ff40e3299b382981 /src/StardewModdingAPI/Manifest.cs | |
parent | 83bdcd28386cebd36890565065912be4e3443603 (diff) | |
download | SMAPI-9d1b6a1af2f21dff9904d03daaf6f1ce6409d7f8.tar.gz SMAPI-9d1b6a1af2f21dff9904d03daaf6f1ce6409d7f8.tar.bz2 SMAPI-9d1b6a1af2f21dff9904d03daaf6f1ce6409d7f8.zip |
fix issue where default ICollection<T> values in config.json were duplicated on each load (#209)
Diffstat (limited to 'src/StardewModdingAPI/Manifest.cs')
-rw-r--r-- | src/StardewModdingAPI/Manifest.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Manifest.cs b/src/StardewModdingAPI/Manifest.cs index 018b31ae..07dd3541 100644 --- a/src/StardewModdingAPI/Manifest.cs +++ b/src/StardewModdingAPI/Manifest.cs @@ -8,6 +8,7 @@ namespace StardewModdingAPI internal class ManifestImpl : Manifest, IManifest { /// <summary>The mod version.</summary> + [JsonProperty("Version", ObjectCreationHandling = ObjectCreationHandling.Auto/* avoids issue where Json.NET can't determine concrete type for interface */)] public new ISemanticVersion Version { get { return base.Version; } |