fix error in new update-check logic (#457)
This commit is contained in:
parent
c1f848f09d
commit
5fc706c182
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue