mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
fix(#905): make sure burg0 is not getting locked [v.1.88.05]
This commit is contained in:
parent
ce07c20fff
commit
3883933385
5 changed files with 15 additions and 6 deletions
|
|
@ -261,7 +261,7 @@ function regenerateProvinces() {
|
|||
|
||||
function regenerateBurgs() {
|
||||
const {cells, states} = pack;
|
||||
const lockedburgs = pack.burgs.filter(b => b.lock);
|
||||
const lockedburgs = pack.burgs.filter(b => b.i && !b.removed && b.lock);
|
||||
rankCells();
|
||||
|
||||
cells.burg = new Uint16Array(cells.i.length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue