summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-24 23:01:39 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-24 23:01:39 -0400
commit85efb3112912a28dbdc82b18d0be8dd117f8c8ee (patch)
tree6001dffd8bc9294e62b53e4c4d1c8458f711f26c /src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs
parentb08e27d13a1f0c82656df95212fc40588b3b5314 (diff)
downloadSMAPI-85efb3112912a28dbdc82b18d0be8dd117f8c8ee.tar.gz
SMAPI-85efb3112912a28dbdc82b18d0be8dd117f8c8ee.tar.bz2
SMAPI-85efb3112912a28dbdc82b18d0be8dd117f8c8ee.zip
fix ISemanticVersion deserialisation errors (#532)
Diffstat (limited to 'src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs')
-rw-r--r--src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs b/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs
index eff95d1f..4f0949fa 100644
--- a/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs
+++ b/src/StardewModdingAPI.Toolkit/Serialisation/Converters/SemanticVersionConverter.cs
@@ -2,8 +2,8 @@ using Newtonsoft.Json.Linq;
namespace StardewModdingAPI.Toolkit.Serialisation.Converters
{
- /// <summary>Handles deserialisation of <see cref="SemanticVersion"/>.</summary>
- internal class SemanticVersionConverter : SimpleReadOnlyConverter<SemanticVersion>
+ /// <summary>Handles deserialisation of <see cref="ISemanticVersion"/>.</summary>
+ internal class SemanticVersionConverter : SimpleReadOnlyConverter<ISemanticVersion>
{
/*********
** Protected methods
@@ -11,7 +11,7 @@ namespace StardewModdingAPI.Toolkit.Serialisation.Converters
/// <summary>Read a JSON object.</summary>
/// <param name="obj">The JSON object to read.</param>
/// <param name="path">The path to the current JSON node.</param>
- protected override SemanticVersion ReadObject(JObject obj, string path)
+ protected override ISemanticVersion ReadObject(JObject obj, string path)
{
int major = obj.ValueIgnoreCase<int>("MajorVersion");
int minor = obj.ValueIgnoreCase<int>("MinorVersion");
@@ -26,7 +26,7 @@ namespace StardewModdingAPI.Toolkit.Serialisation.Converters
/// <summary>Read a JSON string.</summary>
/// <param name="str">The JSON string value.</param>
/// <param name="path">The path to the current JSON node.</param>
- protected override SemanticVersion ReadString(string str, string path)
+ protected override ISemanticVersion ReadString(string str, string path)
{
if (string.IsNullOrWhiteSpace(str))
return null;