From b3a089323fa495f1819a67300812f45ede7905e4 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Mon, 4 Nov 2024 02:23:15 +0300 Subject: [PATCH] fix auth err message --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4507bcc4..00dc4c6e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -388,9 +388,9 @@ async function connect (connectOptions: ConnectOptions) { Object.assign(serverOptions, connectOptions.serverOverridesFlat ?? {}) window._LOAD_MC_DATA() // start loading data (if not loaded yet) const downloadMcData = async (version: string) => { - if (connectOptions.authenticatedAccount && versionToNumber(version) < versionToNumber('1.19.4')) { + if (connectOptions.authenticatedAccount && (versionToNumber(version) < versionToNumber('1.19.4') || versionToNumber(version) >= versionToNumber('1.21'))) { // todo support it (just need to fix .export crash) - throw new Error('Microsoft authentication is only supported in 1.19.4 and above (at least for now)') + throw new Error('Microsoft authentication is only supported on 1.19.4 - 1.20.6 (at least for now)') } // todo expose cache