mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
predefined-heightmaps
This commit is contained in:
parent
d570886816
commit
7f13f1c367
31 changed files with 59 additions and 12 deletions
|
|
@ -913,11 +913,9 @@ function editHeightmap() {
|
|||
|
||||
function uploadTemplate(dataLoaded) {
|
||||
const steps = dataLoaded.split("\r\n");
|
||||
if (!steps.length) {
|
||||
tip("Cannot parse the template, please check the file", false, "error");
|
||||
return;
|
||||
}
|
||||
if (!steps.length) return tip("Cannot parse the template, please check the file", false, "error");
|
||||
templateBody.innerHTML = "";
|
||||
|
||||
for (const s of steps) {
|
||||
const step = s.split(" ");
|
||||
if (step.length !== 5) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue