feat: custom heightmap color scheme - add shceme on load

This commit is contained in:
Azgaar 2023-11-17 03:46:28 +04:00
parent 2ce83643a6
commit 1fe553532d
4 changed files with 29 additions and 13 deletions

View file

@ -454,12 +454,20 @@ async function parseLoadedData(data) {
})();
{
// dynamically import and run auto-udpdate script
// dynamically import and run auto-update script
const versionNumber = parseFloat(params[0]);
const {resolveVersionConflicts} = await import("../dynamic/auto-update.js?v=1.93.00");
resolveVersionConflicts(versionNumber);
}
{
// add custom heightmap color scheme if any
const scheme = terrs.attr("scheme");
if (!(scheme in heightmapColorSchemes)) {
addCustomColorScheme(scheme);
}
}
void (function checkDataIntegrity() {
const cells = pack.cells;