diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-05 23:03:26 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-05 23:03:26 -0400 |
commit | 6eba10948bf39d5e05505ec060f6920f84610d58 (patch) | |
tree | 24fbaade58c3909127353d2d4fd1ce2dadec0727 /src/SMAPI/Framework/Models | |
parent | 3c06a496a0255106076b4f6ade3ed9019dbda4f3 (diff) | |
download | SMAPI-6eba10948bf39d5e05505ec060f6920f84610d58.tar.gz SMAPI-6eba10948bf39d5e05505ec060f6920f84610d58.tar.bz2 SMAPI-6eba10948bf39d5e05505ec060f6920f84610d58.zip |
fix version parsing issues in new toolkit code (#532)
Diffstat (limited to 'src/SMAPI/Framework/Models')
-rw-r--r-- | src/SMAPI/Framework/Models/ManifestContentPackFor.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Models/ManifestContentPackFor.cs b/src/SMAPI/Framework/Models/ManifestContentPackFor.cs index cdad8893..90e20c6a 100644 --- a/src/SMAPI/Framework/Models/ManifestContentPackFor.cs +++ b/src/SMAPI/Framework/Models/ManifestContentPackFor.cs @@ -21,7 +21,7 @@ namespace StardewModdingAPI.Framework.Models public ManifestContentPackFor(Toolkit.Serialisation.Models.ManifestContentPackFor contentPackFor) { this.UniqueID = contentPackFor.UniqueID; - this.MinimumVersion = new SemanticVersion(contentPackFor.MinimumVersion); + this.MinimumVersion = contentPackFor.MinimumVersion != null ? new SemanticVersion(contentPackFor.MinimumVersion) : null; } /// <summary>Construct an instance.</summary> |