From efbe0373b04d29c6d40109982fc72783b468ef9d Mon Sep 17 00:00:00 2001 From: Azgaar Date: Wed, 16 Oct 2024 15:20:44 +0200 Subject: [PATCH] fix: lock all burgs --- index.html | 2 +- modules/ui/burgs-overview.js | 2 +- versioning.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index a54ede5b..96a8c1aa 100644 --- a/index.html +++ b/index.html @@ -8102,7 +8102,7 @@ - + diff --git a/modules/ui/burgs-overview.js b/modules/ui/burgs-overview.js index 1170b5f1..2a487b67 100644 --- a/modules/ui/burgs-overview.js +++ b/modules/ui/burgs-overview.js @@ -608,7 +608,7 @@ function overviewBurgs(settings = {stateId: null, cultureId: null}) { const activeBurgs = pack.burgs.filter(b => b.i && !b.removed); const allLocked = activeBurgs.every(burg => burg.lock); - pack.burgs.forEach(burg => { + activeBurgs.forEach(burg => { burg.lock = !allLocked; }); diff --git a/versioning.js b/versioning.js index ef1bf42f..1aa1326c 100644 --- a/versioning.js +++ b/versioning.js @@ -12,7 +12,7 @@ * * Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2 */ -const VERSION = "1.105.14"; +const VERSION = "1.105.15"; if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function"); {