Merge pull request #22 from flowln/outdated

This commit is contained in:
dada513 2022-07-17 14:03:21 +02:00 committed by GitHub
commit 3a8ca61e9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ const versionAnalyzer: Analyzer = async (text) => {
if (vers && vers[0]) { if (vers && vers[0]) {
const latest = await getLatestPolyMCVersion(); const latest = await getLatestPolyMCVersion();
const current = vers[0].replace('PolyMC version: ', ''); const current = vers[0].replace('PolyMC version: ', '');
if (latest != current) { if (current < latest) {
return [ return [
'Outdated PolyMC', 'Outdated PolyMC',
`Your installed version is ${current}, while the newest version is ${latest}.\nPlease update, for more info see https://polymc.org/download/`, `Your installed version is ${current}, while the newest version is ${latest}.\nPlease update, for more info see https://polymc.org/download/`,