Don't tint a secret door when opening it if setting is disabled
This commit is contained in:
2
main.js
2
main.js
@@ -50,6 +50,8 @@ Hooks.on("canvasReady", () => {
|
|||||||
|
|
||||||
// If door type has been changed, tint the door accordingly
|
// If door type has been changed, tint the door accordingly
|
||||||
Hooks.on("updateWall", (scene, wall, update) => {
|
Hooks.on("updateWall", (scene, wall, update) => {
|
||||||
|
if (!game.settings.get(settingsKey, "highlightSecretDoors"))
|
||||||
|
return
|
||||||
const types = CONST.WALL_DOOR_TYPES
|
const types = CONST.WALL_DOOR_TYPES
|
||||||
if (wall.door === types.NONE)
|
if (wall.door === types.NONE)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user