fix SemanticVersionConverter no longer writing JSON in some cases
This commit is contained in:
parent
47bc21109c
commit
47101419f2
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue