From e3d0b135845d6379aa0de7ea835ecda0c4fc0e8b Mon Sep 17 00:00:00 2001 From: Blair McMillan Date: Mon, 10 Jul 2023 13:05:13 +1000 Subject: [PATCH] exclude folder mapping --- changelog.md | 4 ++++ module.json | 4 ++-- scripts/core.js | 6 ++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 3c98942..ca26701 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +## v2.1.8 + +- Exclude "core.compendiumConfiguration" setting from exports due to the folder ID mapping not being consistent across worlds anyway. + ## v2.1.7 - Mark compatible with v11. diff --git a/module.json b/module.json index ce38e11..b49eec7 100644 --- a/module.json +++ b/module.json @@ -22,12 +22,12 @@ "flags": { "allowBugReporter": true }, - "version": "2.1.7", "minimumCoreVersion": "0.6.0", "compatibleCoreVersion": "11", + "version": "2.1.8", "compatibility": { "minimum": "0.6.0", - "verified": "11.301" + "verified": "11.305" }, "scripts": [], "esmodules": [ diff --git a/scripts/core.js b/scripts/core.js index f2c56d5..78ef2b4 100755 --- a/scripts/core.js +++ b/scripts/core.js @@ -439,6 +439,12 @@ export default class Core extends FormApplication { Array.from(game.settings.settings) .filter(([k, v]) => { try { + if (v.namespace === 'core' && v.key === 'compendiumConfiguration') { + // The Compendium Configuration setting maps compendiums to folders, and the FolderIDs + // change in a new world, so migrating this value breaks the mapping. + return false; + } + const value = game.settings.get(v.namespace, v.key); let sameValue = value === v.default; if (value && typeof value === 'object' && v.default && typeof v.default === 'object') {