fix(#905): make sure burg0 is not getting locked [v.1.88.05]

This commit is contained in:
Azgaar 2022-12-15 15:43:40 +03:00
parent ce07c20fff
commit 3883933385
5 changed files with 15 additions and 6 deletions

View file

@ -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 &&