diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-26 18:19:36 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-26 18:19:36 -0400 |
commit | 5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588 (patch) | |
tree | bf347db5fb7fcd7a300b1920872444e9b3b79773 /src/SMAPI/Program.cs | |
parent | c1f848f09dcc033d05d64eb69cce87c2f89df6a3 (diff) | |
download | SMAPI-5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588.tar.gz SMAPI-5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588.tar.bz2 SMAPI-5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588.zip |
fix error in new update-check logic (#457)
Diffstat (limited to 'src/SMAPI/Program.cs')
-rw-r--r-- | src/SMAPI/Program.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs index 4075dae4..dc9e5308 100644 --- a/src/SMAPI/Program.cs +++ b/src/SMAPI/Program.cs @@ -665,7 +665,8 @@ namespace StardewModdingAPI private bool IsValidUpdate(ISemanticVersion currentVersion, ISemanticVersion newVersion, bool useBetaChannel) { return - newVersion.IsNewerThan(currentVersion) + newVersion != null + && newVersion.IsNewerThan(currentVersion) && (useBetaChannel || newVersion.Build == null); } |