From 4d38ebea41570c1bc36729b9efb9831dcf0814d4 Mon Sep 17 00:00:00 2001 From: theripper93 Date: Sat, 16 Jul 2022 22:00:41 +0200 Subject: [PATCH] whops --- scripts/patches.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/patches.js b/scripts/patches.js index afcc594..6587b3a 100644 --- a/scripts/patches.js +++ b/scripts/patches.js @@ -264,7 +264,7 @@ export function registerWrappers() { function isDoorVisible(wrapped, ...args) { const wall = this.wall; const { advancedVision } = getSceneSettings(wall.scene); - const elevation = WallHeight.isLevels && _levels?.UI?.rangeEnabled && !canvas.tokens.controlled[0] ? WallHeight.currentTokenElevation : WallHeight._token?.document?.elevation; + const elevation = WallHeight.isLevels && CONFIG.Levels?.UI?.rangeEnabled && !canvas.tokens.controlled[0] ? WallHeight.currentTokenElevation : WallHeight._token?.document?.elevation; if (elevation == null || !advancedVision) return wrapped(...args); const { top, bottom } = getWallBounds(wall); if (elevation < bottom || elevation > top) return false;