mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +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
|
|
@ -500,6 +500,15 @@ async function parseLoadedData(data) {
|
|||
});
|
||||
|
||||
pack.burgs.forEach(burg => {
|
||||
if ((!burg.i || burg.removed) && burg.lock) {
|
||||
ERROR &&
|
||||
console.error(
|
||||
`Data Integrity Check. Burg ${burg.i || "0"} is removed or invalid but still locked. Unlocking the burg`
|
||||
);
|
||||
delete burg.lock;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!burg.i || burg.removed) return;
|
||||
if (burg.cell === undefined || burg.x === undefined || burg.y === undefined) {
|
||||
ERROR &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue