disable some useless warnings

This commit is contained in:
Vitaly Turovsky 2024-04-27 16:11:38 +03:00
commit a504d3f5aa

View file

@ -85,8 +85,10 @@ export const loadSave = async (root = '/world') => {
const qs = new URLSearchParams(window.location.search)
version = qs.get('mapVersion') ?? levelDat.Version?.Name
if (!version) {
const newVersion = disablePrompts ? '1.8.8' : prompt(`In 1.8 and before world save doesn't contain version info, please enter version you want to use to load the world.\nSupported versions ${supportedVersions.join(', ')}`, '1.8.8')
if (!newVersion) return
// const newVersion = disablePrompts ? '1.8.8' : prompt(`In 1.8 and before world save doesn't contain version info, please enter version you want to use to load the world.\nSupported versions ${supportedVersions.join(', ')}`, '1.8.8')
// if (!newVersion) return
// todo detect world load issues
const newVersion = '1.8.8'
version = newVersion
}
const lastSupportedVersion = supportedVersions.at(-1)!
@ -110,7 +112,7 @@ export const loadSave = async (root = '/world') => {
isFlat = levelDat.generatorName === 'flat'
}
if (!isFlat && levelDat.generatorName !== 'default' && levelDat.generatorName !== 'customized') {
warnings.push(`Generator ${levelDat.generatorName} may not be supported yet`)
// warnings.push(`Generator ${levelDat.generatorName} may not be supported yet, be careful of new chunks writes`)
}
const playerUuid = nameToMcOfflineUUID(options.localUsername)
@ -150,7 +152,7 @@ export const loadSave = async (root = '/world') => {
if (!fsState.isReadonly && !fsState.inMemorySave && !disablePrompts) {
// todo allow also to ctrl+s
alert('Note: the world is saved only on /save or disconnect! Ensure you have backup!')
alert('Note: the world is saved on interval, /save or disconnect! Ensure you have backup and be careful of new chunks writes!')
}
// improve compatibility with community saves