From e9ae71af594170d6b4d5f035af1ac0ef35afd883 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 14 May 2022 21:32:29 +0300 Subject: [PATCH] load exclusion for 1.811 --- index.html | 2 +- modules/io/load.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e7852b78..dc929b3d 100644 --- a/index.html +++ b/index.html @@ -6342,7 +6342,7 @@ - + diff --git a/modules/io/load.js b/modules/io/load.js index 30736043..89fcb584 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -124,7 +124,8 @@ function uploadMap(file, callback) { const isInvalid = !mapData || isNaN(mapVersion) || mapData.length < 26 || !mapData[5]; const isUpdated = mapVersion === currentVersion; const isAncient = mapVersion < OLDEST_SUPPORTED_VERSION; - const isNewer = mapVersion > currentVersion; + // TODO: temp condition for 1.811, remove when 1.82 is released + const isNewer = mapVersion > currentVersion && currentVersion !== 1.811; const isOutdated = mapVersion < currentVersion; if (isInvalid) return showUploadMessage("invalid", mapData, mapVersion);