summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Serialisation/SFieldConverter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-01-12 01:24:49 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-01-12 01:24:49 -0500
commit0ad9fbddddbf9edfd847c507d70e10d2f8ce559b (patch)
treea7bf3bd2b04767bbb0ad9c23fdb3e7ea0edee895 /src/SMAPI/Framework/Serialisation/SFieldConverter.cs
parentdc2ceb39f31c35752c943b5052d5abaa7b6494fa (diff)
downloadSMAPI-0ad9fbddddbf9edfd847c507d70e10d2f8ce559b.tar.gz
SMAPI-0ad9fbddddbf9edfd847c507d70e10d2f8ce559b.tar.bz2
SMAPI-0ad9fbddddbf9edfd847c507d70e10d2f8ce559b.zip
fix semantic versions always ignoring `-0` tag (#421)
Diffstat (limited to 'src/SMAPI/Framework/Serialisation/SFieldConverter.cs')
-rw-r--r--src/SMAPI/Framework/Serialisation/SFieldConverter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Serialisation/SFieldConverter.cs b/src/SMAPI/Framework/Serialisation/SFieldConverter.cs
index 917c950d..6e068599 100644
--- a/src/SMAPI/Framework/Serialisation/SFieldConverter.cs
+++ b/src/SMAPI/Framework/Serialisation/SFieldConverter.cs
@@ -51,7 +51,7 @@ namespace StardewModdingAPI.Framework.Serialisation
int minor = obj.Value<int>(nameof(ISemanticVersion.MinorVersion));
int patch = obj.Value<int>(nameof(ISemanticVersion.PatchVersion));
string build = obj.Value<string>(nameof(ISemanticVersion.Build));
- return new SemanticVersion(major, minor, patch, build);
+ return new LegacyManifestVersion(major, minor, patch, build);
}
case JTokenType.String: