Skip to content

Commit

Permalink
Add null check for character uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ authored Aug 14, 2023
1 parent 8203a62 commit c203fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function getVisibleUsers(tok) {
cantSee.push(canvas.tokens.get(key)?.actor?.uuid);
}
}
list.concat(game.users.players.filter(u => !cantSee.includes(u.character.uuid)).map(u => u.id));
list.concat(game.users.players.filter(u => !cantSee.includes(u?.character?.uuid)).map(u => u.id));
} else {
list = game.users.map(u => u.id);
}
Expand Down

0 comments on commit c203fcc

Please sign in to comment.