diff --git a/src/utils/GithubClient.ts b/src/utils/GithubClient.ts index 1720d2d0..aef916ff 100644 --- a/src/utils/GithubClient.ts +++ b/src/utils/GithubClient.ts @@ -137,7 +137,9 @@ const e = new (class GithubClient extends TypedEmitter { return response.data.reduce((result, release) => { const match = /tgstation-server-v([\d.]+)/.exec(release.name ?? ""); if (!match) return result; - if (match[1][0] !== "4" && match[1][0] !== "5") return result; + + const majorVersion = parseInt(match[1][0]); + if (majorVersion < 4) return result; const version = match[1]; let old = false;