diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-11 16:08:58 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-11 16:08:58 -0400 |
commit | e0488fa5b2a0a5236a7a034d6712392eb8ed1918 (patch) | |
tree | 990fe32d4553fd76093e8777870055f7c3a6b001 /src/SMAPI | |
parent | b425bff1e992efbab154e3ef289e8cc4c41ab714 (diff) | |
download | SMAPI-e0488fa5b2a0a5236a7a034d6712392eb8ed1918.tar.gz SMAPI-e0488fa5b2a0a5236a7a034d6712392eb8ed1918.tar.bz2 SMAPI-e0488fa5b2a0a5236a7a034d6712392eb8ed1918.zip |
fix error when a remote mod version is invalid (#462)
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Program.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs index 1b8cb2ba..5a1f7409 100644 --- a/src/SMAPI/Program.cs +++ b/src/SMAPI/Program.cs @@ -629,7 +629,7 @@ namespace StardewModdingAPI // compare versions bool isUpdate = remoteVersion.IsNewerThan(localVersion); - this.VerboseLog($" {mod.DisplayName} ({result.Key}): {(isUpdate ? $"{mod.Manifest.Version}{(!localVersion.Equals(mod.Manifest.Version) ? $" [{localVersion}]" : "")} => {remoteInfo.Version}{(!remoteVersion.Equals(new SemanticVersion(remoteInfo.Version)) ? $" [{remoteVersion}]" : "")}" : "okay")}."); + this.VerboseLog($" {mod.DisplayName} ({result.Key}): {(isUpdate ? $"{mod.Manifest.Version}{(!localVersion.Equals(mod.Manifest.Version) ? $" [{localVersion}]" : "")} => {remoteInfo.Version}" : "okay")}."); if (isUpdate) { if (!updatesByMod.TryGetValue(mod, out ModInfoModel other) || remoteVersion.IsNewerThan(other.Version)) |