summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-09-06 20:22:42 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-09-06 20:22:42 -0400
commit47101419f2cf4b3c532fd996840d7301e77e7785 (patch)
treebcf4e1666c416b692aace1645c69e81a5271930d /src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs
parent47bc21109c183d48b80458380ad988c7d1045cf6 (diff)
downloadSMAPI-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.cs2
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>