diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-09-06 20:22:42 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-09-06 20:22:42 -0400 |
commit | 47101419f2cf4b3c532fd996840d7301e77e7785 (patch) | |
tree | bcf4e1666c416b692aace1645c69e81a5271930d /src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs | |
parent | 47bc21109c183d48b80458380ad988c7d1045cf6 (diff) | |
download | SMAPI-47101419f2cf4b3c532fd996840d7301e77e7785.tar.gz SMAPI-47101419f2cf4b3c532fd996840d7301e77e7785.tar.bz2 SMAPI-47101419f2cf4b3c532fd996840d7301e77e7785.zip |
fix SemanticVersionConverter no longer writing JSON in some cases
Diffstat (limited to 'src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs')
-rw-r--r-- | src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs b/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs index 39e990d5..070f2c97 100644 --- a/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs +++ b/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs @@ -24,7 +24,7 @@ namespace StardewModdingAPI.Toolkit.Serialisation.Converters /// <param name="objectType">The object type.</param> public override bool CanConvert(Type objectType) { - return objectType == typeof(ISemanticVersion); + return typeof(ISemanticVersion).IsAssignableFrom(objectType); } /// <summary>Reads the JSON representation of the object.</summary> |