From bdd4814f06eb8987df302ac4d9cb695df1c086a4 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 26 Jun 2022 22:56:25 +1000 Subject: [PATCH] fix(update): return if current version is higher than release The version checker will report a "major update" if fxmanifest's version is higher than the latest release (a tag has not been pushed). --- src/update/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/update/index.ts b/src/update/index.ts index 556dfa2..dff55b5 100644 --- a/src/update/index.ts +++ b/src/update/index.ts @@ -17,7 +17,7 @@ if (GetConvar('mysql_versioncheck', 'true') === 'true') { const latestVersion = release.tag_name.match(/(\d)\.(\d+)\.(\d+)/); if (!latestVersion) return; - if (currentVersion[0] === latestVersion[0]) return; + if (currentVersion[0] === latestVersion[0] || currentVersion[0] > latestVersion[0]) return; const updateMessage = currentVersion[3] < latestVersion[3]