Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed Sep 13, 2022
1 parent bbd6a4e commit 81542b4
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 @@ -61,7 +61,7 @@ class WallHeightUtils{
}

updateCurrentTokenElevation() {
const token = canvas.tokens.controlled[0];
const token = canvas.tokens.controlled.find(t => t.document.sight.enabled);//canvas.tokens.controlled[0];
if (!token && game.user.isGM) {
this.currentTokenElevation = null;
this._token = null;
Expand Down

0 comments on commit 81542b4

Please sign in to comment.