Skip to content

Commit

Permalink
patch: fix bug with opening default token settings
Browse files Browse the repository at this point in the history
  • Loading branch information
surged20 committed Mar 2, 2023
1 parent 17270dc commit 7522679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function patchResourceBars() {
"wjmais",
"game.dnd5e.documents.TokenDocument5e.prototype.getBarAttribute",
function (wrapped, ...args) {
if (game.actors.get(this.actorId).flags?.wjmais?.traits)
if (game.actors.get(this.actorId)?.flags?.wjmais?.traits)
return Object.getPrototypeOf(
game.dnd5e.documents.TokenDocument5e
).prototype.getBarAttribute.apply(this, args);
Expand Down

0 comments on commit 7522679

Please sign in to comment.