diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-25 17:40:00 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-25 17:40:00 -0400 |
commit | d338322bc63387c151a5d75bf52e12c71d34ea07 (patch) | |
tree | 892db5df84b8a4bb3decc5fe5dfcc4e3f7e18862 /src | |
parent | 6dff9779a349945d502dee67d5d4dd8e63b4f753 (diff) | |
download | SMAPI-d338322bc63387c151a5d75bf52e12c71d34ea07.tar.gz SMAPI-d338322bc63387c151a5d75bf52e12c71d34ea07.tar.bz2 SMAPI-d338322bc63387c151a5d75bf52e12c71d34ea07.zip |
fix update checks not normalising remote versions (#336)
Diffstat (limited to 'src')
-rw-r--r-- | src/StardewModdingAPI/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs index 7b3048c0..0c4648ab 100644 --- a/src/StardewModdingAPI/Program.cs +++ b/src/StardewModdingAPI/Program.cs @@ -577,7 +577,7 @@ namespace StardewModdingAPI // track update ISemanticVersion localVersion = new SemanticVersion(mod.DataRecord?.GetLocalVersionForUpdateChecks(mod.Manifest.Version.ToString())); - ISemanticVersion latestVersion = new SemanticVersion(mod.DataRecord?.GetRemoteVersionForUpdateChecks(info.Version)); + ISemanticVersion latestVersion = new SemanticVersion(mod.DataRecord?.GetRemoteVersionForUpdateChecks(new SemanticVersion(info.Version).ToString())); bool isUpdate = latestVersion.IsNewerThan(localVersion); this.VerboseLog($" {mod.DisplayName} ({result.Key}): {(isUpdate ? $"{mod.Manifest.Version}{(!localVersion.Equals(mod.Manifest.Version) ? $" [{localVersion}]" : "")} => {info.Version}{(!latestVersion.Equals(new SemanticVersion(info.Version)) ? $" [{latestVersion}]" : "")}" : "OK")}."); if (isUpdate) |