Skip to content

Commit

Permalink
Merge pull request dmdorman#1555 from phBalance/phBalance/v12-warning…
Browse files Browse the repository at this point in the history
…-cleanup2

fix document.user -> document.author for measured template
  • Loading branch information
phBalance authored Nov 30, 2024
2 parents a8bf96d + 1edf7c0 commit 4d53c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/measuretemplate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class HeroSystem6eMeasuredTemplate extends MeasuredTemplate {
await super._onUpdate(data, options, userId);

// Update user targets only if we moved the template (effectively an owner of the template) or if we are the author of the template
if (game.user.id !== userId && game.user.id !== this.document.user.id) return;
if (game.user.id !== userId && game.user.id !== this.document.author.id) return;

this._computeShape();
await this.selectObjects({ checkPositions: true, templateData: data });
Expand Down

0 comments on commit 4d53c76

Please sign in to comment.