Skip to content

Commit

Permalink
provide silent fallback for operations on tokens without actors (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Forien authored Dec 3, 2024
1 parent e218034 commit 5da4e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function() {
{

let tokenUpdate = {_id : mountId, x : updateData.x || token.x, y: updateData.y || token.y, sort : token.sort - 1 }
if (token.actor.details.size.value == token.actor.mount.details.size.value)
if (token.actor?.details.size.value == token.actor?.mount.details.size.value)
{
tokenUpdate.x += canvas.grid.size / 4
tokenUpdate.y += canvas.grid.size / 4
Expand Down

0 comments on commit 5da4e57

Please sign in to comment.