diff --git a/modules/io/load.js b/modules/io/load.js index 319c1ffb..034d977a 100644 --- a/modules/io/load.js +++ b/modules/io/load.js @@ -460,8 +460,8 @@ async function parseLoadedData(data, mapVersion) { resolveVersionConflicts(versionNumber); } - { - // add custom heightmap color scheme if any + // add custom heightmap color scheme if any + if (heightmapColorSchemes) { const oceanScheme = terrs.select("#oceanHeights").attr("scheme"); const landScheme = terrs.select("#landHeights").attr("scheme"); if (!(oceanScheme in heightmapColorSchemes)) addCustomColorScheme(oceanScheme);