fix error in new update-check logic (#457)

This commit is contained in:
Jesse Plamondon-Willard 2018-04-26 18:19:36 -04:00
parent c1f848f09d
commit 5fc706c182
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}