Skip to content

Commit

Permalink
up tested ver
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed May 5, 2024
1 parent 1e7153c commit 8655405
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/loadSave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ export const loadSave = async (root = '/world') => {
const newVersion = '1.8.8'
version = newVersion
}
const lastSupportedVersion = supportedVersions.at(-1)!
// const lastSupportedVersion = supportedVersions.at(-1)!
const lastTestedVersion = '1.18.2'
const firstSupportedVersion = supportedVersions[0]
const lowerBound = isMajorVersionGreater(firstSupportedVersion, version)
const upperBound = isMajorVersionGreater(version, lastSupportedVersion)
const upperBound = isMajorVersionGreater(version, lastTestedVersion)
if (lowerBound || upperBound) {
version = prompt(`Version ${version} is not supported, supported versions are ${supportedVersions.join(', ')}, what try to use instead?`, lowerBound ? firstSupportedVersion : lastSupportedVersion)
version = prompt(`Version ${version} is not supported, supported versions are ${supportedVersions.join(', ')}, what try to use instead?`, lowerBound ? firstSupportedVersion : lastTestedVersion)
if (!version) return
}
if (levelDat.WorldGenSettings) {
Expand Down

0 comments on commit 8655405

Please sign in to comment.