refactor: Update relief icon handling and streamline texture atlas integration

This commit is contained in:
Azgaar 2026-03-12 21:46:22 +01:00
parent b17b417d1b
commit 256f36015b
5 changed files with 46 additions and 58 deletions

View file

@ -1122,10 +1122,11 @@ export function resolveVersionConflicts(mapVersion) {
terrainEl.querySelectorAll("use").forEach(u => {
const href = u.getAttribute("href") || u.getAttribute("xlink:href") || "";
if (!href) return;
const icon = href.replace("#", "");
const x = +u.getAttribute("x");
const y = +u.getAttribute("y");
const s = +u.getAttribute("width");
relief.push({i: relief.length, href, x, y, s});
relief.push({i: relief.length, icon, x, y, s});
});
terrainEl.innerHTML = "";
pack.relief = relief;