mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
fix: restore burgs on load - add group order
This commit is contained in:
parent
bc8ad03c0f
commit
f51c45e17a
1 changed files with 2 additions and 2 deletions
|
|
@ -984,9 +984,9 @@ export function resolveVersionConflicts(mapVersion) {
|
|||
|
||||
options.burgs = {groups: []};
|
||||
|
||||
burgIcons.selectAll("g").each(function () {
|
||||
burgIcons.selectAll("g").each(function (_el, index) {
|
||||
const name = this.id;
|
||||
options.burgs.groups.push({name, active: true, preview: "watabou-city"});
|
||||
options.burgs.groups.push({name, active: true, order: index + 1, preview: "watabou-city"});
|
||||
|
||||
const size = Number(this.getAttribute("size") || 2) * 2;
|
||||
this.removeAttribute("size");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue