Closed Z-Machine closed 3 years ago
I had the same Issue
Thanks for the report. This should be fixed in latest.
Thanks for the patch @Z-Machine - I don't fully understand what's happening in that getTokenOwner()
function so this will work for now. Do you have any good info on getting the owned user? This seems terribly convoluted:
let owners = getKeyByValue(token.actor.data.permission,3);
I am going to close as this has been patched I believe.
https://github.com/eadorin/about-face/blob/595cf27cb076108675e368ca6e2e14ee35c77eba/src/scripts/TokenIndicator.js#L121 user[0] can be null and causes the module to stop drawing indicators once a null user is hit.
This seems to be happening when LootSheet5eNPC tokens that are on the map.
As a bandage I added a null check.
https://github.com/eadorin/about-face/blob/595cf27cb076108675e368ca6e2e14ee35c77eba/src/about-face.js#L133 This happens when I lock the rotation of a token