I have disabled all other modules: True
Module(s) Levels
Conflicting Module(s) Levels
Foundry and System version Foundry 10.291 | Pathfinder Second Edition 4.10.1+
OS, Hosting, Browser (if applicable) Windows, self-hosting,
Short description of bug Hearing detection mode don't working with activated Levels module
Simple steps to reproduce the bug
Open token settings
Set darkness on scene or lesser vision angle (175)
Set "Hearing" detection mode on distance 500 ft
Check that it works without the "Levels" module
Activate Levels module
It stops working
Video - https://youtu.be/esyyYteGYhwScreenshots and/or Console Errors
Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'flags')
[Detected 1 package: wall-height]
at migrateTokenHeightInScene (modules/wall-height/scripts/utils.js:135)
at migrateTokenHeight (modules/wall-height/scripts/utils.js:112)
at WallHeightUtils.migrateTokenHeight (modules/wall-height/scripts/patches.js:144)
at Object.fn (modules/wall-height/scripts/wall-height.js:32)
at Function.#call (foundry.js:724)
at Function.callAll (foundry.js:681)
at Game.setupGame (foundry.js:7952)
at async Game._initializeGameView (foundry.js:8999)
at async Game.initialize (foundry.js:7825)
I have disabled all other modules: True Module(s) Levels Conflicting Module(s) Levels Foundry and System version Foundry 10.291 | Pathfinder Second Edition 4.10.1+ OS, Hosting, Browser (if applicable) Windows, self-hosting, Short description of bug Hearing detection mode don't working with activated Levels module Simple steps to reproduce the bug
Video - https://youtu.be/esyyYteGYhw Screenshots and/or Console Errors Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'flags') [Detected 1 package: wall-height] at migrateTokenHeightInScene (modules/wall-height/scripts/utils.js:135) at migrateTokenHeight (modules/wall-height/scripts/utils.js:112) at WallHeightUtils.migrateTokenHeight (modules/wall-height/scripts/patches.js:144) at Object.fn (modules/wall-height/scripts/wall-height.js:32) at Function.#call (foundry.js:724) at Function.callAll (foundry.js:681) at Game.setupGame (foundry.js:7952) at async Game._initializeGameView (foundry.js:8999) at async Game.initialize (foundry.js:7825)