mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix: loose format requirements for old files to show correct message
This commit is contained in:
parent
877afa546d
commit
1a61a433b7
3 changed files with 3 additions and 3 deletions
|
|
@ -114,7 +114,7 @@ function uploadMap(file, callback) {
|
|||
const result = fileLoadedEvent.target.result;
|
||||
const {mapData, mapVersion} = await parseLoadedResult(result);
|
||||
|
||||
const isInvalid = !mapData || !isValidVersion(mapVersion) || mapData.length < 26 || !mapData[5];
|
||||
const isInvalid = !mapData || !isValidVersion(mapVersion) || mapData.length < 10 || !mapData[5];
|
||||
if (isInvalid) return showUploadMessage("invalid", mapData, mapVersion);
|
||||
|
||||
const isUpdated = compareVersions(mapVersion, VERSION).isEqual;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue