diff --git a/main.js b/main.js index d66c5300..c2c4301a 100644 --- a/main.js +++ b/main.js @@ -2,7 +2,7 @@ // https://github.com/Azgaar/Fantasy-Map-Generator "use strict"; -const version = "1.65"; // generator version1 +const version = "1.651"; // generator version1 document.title += " v" + version; // Switches to disable/enable logging features diff --git a/modules/load.js b/modules/load.js index 96a2845d..d29bd302 100644 --- a/modules/load.js +++ b/modules/load.js @@ -709,6 +709,8 @@ function parseLoadedData(data) { if (version < 1.65) { // v 1.65 changed rivers data + rivers.attr("style", null); // remove style to unhide layer + for (const river of pack.rivers) { const node = document.getElementById("river" + river.i); if (node && !river.cells) { @@ -733,6 +735,11 @@ function parseLoadedData(data) { }); } } + + if (version < 1.651) { + // remove style to unhide river layer + rivers.attr("style", null); + } })(); void (function checkDataIntegrity() {