Skip to content

Commit

Permalink
v2.1.8
Browse files Browse the repository at this point in the history
- Exclude "core.compendiumConfiguration" setting from exports due to the folder ID mapping not being consistent across worlds anyway.
  • Loading branch information
sneat authored Jul 10, 2023
2 parents dcb94bb + e3d0b13 commit 04dbfbd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
6 changes: 6 additions & 0 deletions scripts/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 04dbfbd

Please sign in to comment.