predefined-heightmaps

This commit is contained in:
Azgaar 2022-02-19 19:29:05 +03:00
parent d570886816
commit 7f13f1c367
31 changed files with 59 additions and 12 deletions

View file

@ -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) {