Skip to content

Commit

Permalink
whops
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Jul 16, 2022
1 parent 0e1dd13 commit 4d38ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/patches.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d38ebe

Please sign in to comment.