mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: check if heightmapColorSchemes is defined
This commit is contained in:
parent
374c21b3d7
commit
4e884b10ee
1 changed files with 2 additions and 2 deletions
|
|
@ -460,8 +460,8 @@ async function parseLoadedData(data, mapVersion) {
|
||||||
resolveVersionConflicts(versionNumber);
|
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 oceanScheme = terrs.select("#oceanHeights").attr("scheme");
|
||||||
const landScheme = terrs.select("#landHeights").attr("scheme");
|
const landScheme = terrs.select("#landHeights").attr("scheme");
|
||||||
if (!(oceanScheme in heightmapColorSchemes)) addCustomColorScheme(oceanScheme);
|
if (!(oceanScheme in heightmapColorSchemes)) addCustomColorScheme(oceanScheme);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue