summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Serialization
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-01-23 00:31:26 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-01-23 00:31:26 -0500
commitd1935e686c6396519a1ff9b1b429cd55adcf8d11 (patch)
tree3fe7770e4ee13c8fe4d7a25eb041210b42e7b9b6 /src/SMAPI.Toolkit/Serialization
parent381de5eba9f9822c3483abdf64396cec794e3d03 (diff)
downloadSMAPI-d1935e686c6396519a1ff9b1b429cd55adcf8d11.tar.gz
SMAPI-d1935e686c6396519a1ff9b1b429cd55adcf8d11.tar.bz2
SMAPI-d1935e686c6396519a1ff9b1b429cd55adcf8d11.zip
add full internal support for non-standard four-part versions
Diffstat (limited to 'src/SMAPI.Toolkit/Serialization')
-rw-r--r--src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs b/src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs
index ece4a72e..e1b9db1d 100644
--- a/src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs
+++ b/src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs
@@ -68,7 +68,7 @@ namespace StardewModdingAPI.Toolkit.Serialization.Converters
int patch = obj.ValueIgnoreCase<int>(nameof(ISemanticVersion.PatchVersion));
string prereleaseTag = obj.ValueIgnoreCase<string>(nameof(ISemanticVersion.PrereleaseTag));
- return new SemanticVersion(major, minor, patch, prereleaseTag);
+ return new SemanticVersion(major, minor, patch, prereleaseTag: prereleaseTag);
}
/// <summary>Read a JSON string.</summary>