Skip to content

Commit

Permalink
Merge pull request #296 from JDCalvert/main
Browse files Browse the repository at this point in the history
Fix compatibility with Force Client Settings
  • Loading branch information
Dorako authored Dec 21, 2023
2 parents ebc6393 + 7e10d71 commit 5f669f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esmodules/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Hooks.once("init", async () => {
util.debug("initialized properties...");

util.debug("Migrating invalid settings to default...");
const allSettings = [...game.settings.settings].filter(([k, _]) => k.includes(MODULE_NAME));
const allSettings = [...game.settings.settings].filter(([k, _]) => k.startsWith(MODULE_NAME));
for (const [_, setting] of allSettings) {
const key = setting.key;
const currentValue = game.settings.get(MODULE_NAME, key);
Expand Down

0 comments on commit 5f669f4

Please sign in to comment.