From 2f12e06e3b83077d8dc5d322ea27f38e15a26f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Mon, 7 Dec 2020 23:28:31 +0100 Subject: [PATCH] Don't tint a secret door when opening it if setting is disabled --- main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.js b/main.js index 42e5375..ea0568d 100644 --- a/main.js +++ b/main.js @@ -50,6 +50,8 @@ Hooks.on("canvasReady", () => { // If door type has been changed, tint the door accordingly Hooks.on("updateWall", (scene, wall, update) => { + if (!game.settings.get(settingsKey, "highlightSecretDoors")) + return const types = CONST.WALL_DOOR_TYPES if (wall.door === types.NONE) return