From 5fc706c18267f5ff4cf31fd0e1ab76f1a57e1588 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 26 Apr 2018 18:19:36 -0400 Subject: fix error in new update-check logic (#457) --- src/SMAPI/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/SMAPI/Program.cs') 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); } -- cgit