From 7e10d71d5495631189444f9dde21e19ef4cd3f8f Mon Sep 17 00:00:00 2001 From: Jonathan Calvert Date: Thu, 21 Dec 2023 21:20:09 +0000 Subject: [PATCH] Fix compatibility with Force Client Settings --- esmodules/settings/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esmodules/settings/settings.js b/esmodules/settings/settings.js index be3db40..6160252 100644 --- a/esmodules/settings/settings.js +++ b/esmodules/settings/settings.js @@ -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);