Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Apr 4, 2022
1 parent 0f93df3 commit 3fef7a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/patches.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export function registerWrappers() {
const { advancedVision } = getSceneSettings(wall.scene);
if (!advancedVision) return true;
const { top, bottom } = getWallBounds(wall);
return origin.b >= bottom && !(origin.t - top >= 0);
return origin.b >= bottom && origin.t <= top;
}

function testWallInclusion(wrapped, ...args){
Expand Down
4 changes: 4 additions & 0 deletions scripts/wall-height.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Hooks.on("createWall", () => {
if (canvas.hud?.wallHeight) canvas.hud.wallHeight.clear();
});

Hooks.on("updateWall", () => {
if (canvas.hud?.wallHeight) canvas.hud.wallHeight.clear();
});

function registerSettings() {
game.settings.register(MODULE_ID, 'enableTooltip', {
name: game.i18n.localize(`${MODULE_SCOPE}.settings.enableTooltip.name`),
Expand Down

0 comments on commit 3fef7a1

Please sign in to comment.