fix SemanticVersionConverter no longer writing JSON in some cases

This commit is contained in:
Jesse Plamondon-Willard 2018-09-06 20:22:42 -04:00
parent 47bc21109c
commit 47101419f2
1 changed files with 1 additions and 1 deletions

View File

@ -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>