feat: auto-update and restore layers

This commit is contained in:
Azgaar 2024-09-09 22:01:38 +02:00
parent 3925a38de0
commit aca4f4c5fb
2 changed files with 5 additions and 1 deletions

View file

@ -422,7 +422,7 @@ async function parseLoadedData(data, mapVersion) {
// turn on active layers
if (hasChild(texture, "image")) turnOn("toggleTexture");
if (hasChildren(terrs)) turnOn("toggleHeight");
if (hasChildren(terrs.select("#landHeights"))) turnOn("toggleHeight");
if (hasChildren(biomes)) turnOn("toggleBiomes");
if (hasChildren(cells)) turnOn("toggleCells");
if (hasChildren(gridOverlay)) turnOn("toggleGrid");