mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
Fixed Loading Bug
This commit is contained in:
parent
58f5bf4d4c
commit
865fa6e5d1
2 changed files with 4 additions and 5 deletions
|
|
@ -195,6 +195,7 @@ function uploadFile(file, callback) {
|
|||
|
||||
const archive = "<a href='https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Changelog' target='_blank'>archived version</a>";
|
||||
const parsed = parseFloat(mapVersion);
|
||||
console.timeEnd("loadMap");
|
||||
let message = "", load = false;
|
||||
if (isNaN(parsed) || data.length < 26 || !data[5]) {
|
||||
message = `The file you are trying to load is outdated or not a valid .map file.
|
||||
|
|
@ -390,5 +391,4 @@ function parseLoadedData(data) {
|
|||
restoreDefaultEvents();
|
||||
invokeActiveZooming();
|
||||
tip("Map is loaded");
|
||||
console.timeEnd("loadMap");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue