mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
fix: auto-update old burg styles
This commit is contained in:
parent
96228fe704
commit
bc8ad03c0f
2 changed files with 28 additions and 7 deletions
|
|
@ -313,7 +313,7 @@ window.Burgs = (() => {
|
|||
];
|
||||
|
||||
function defineGroup(burg, populations) {
|
||||
if (burg.lock) {
|
||||
if (burg.lock && burg.group) {
|
||||
// locked burgs: don't change group if it still exists
|
||||
const group = options.burgs.groups.find(g => g.name === burg.group);
|
||||
if (group) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue