p4535992 / foundryvtt-arms-reach

FoundryVTT Door little Utilities, Arms Reach for door
MIT License
3 stars 5 forks source link

[BUG] Close Open Doors/ Reset Doors and Fog doesn't work if doors are open #33

Closed DariusWolfe closed 2 years ago

DariusWolfe commented 2 years ago

Module Version: v2.1.6

Describe the bug Reset Doors and Fog functionality only works if all doors are already closed. The "Close Open Doors" functionality in the Wall Controls Layer does not work at all.

If all doors are closed, the function to reset fog functions, and it shows pop-ups showing that "Doors have been shut."

In both cases if one or more doors is open, the following error is thrown:

resetdoorsandfog.js:22 Uncaught (in promise) TypeError: item.update is not a function
[Detected 1 package: foundryvtt-arms-reach]
    at resetdoorsandfog.js:22
    at Array.forEach (<anonymous>)
    at Object.resetDoors (resetdoorsandfog.js:22)
    at Object.onClick (Hooks.js:64)
    at SceneControls._onClickTool (foundry.js:51380)
    at HTMLLIElement.dispatch (jquery.min.js:2)
    at HTMLLIElement.v.handle (jquery.min.js:2)

To Reproduce Steps to reproduce the behavior:

  1. Install fresh world
  2. Enable Arm's Reach + libWrapper

Expected behavior Open Doors should be closed (and Fog of War exploration reset, when using this option)

Screenshots image

Browser:

Foundry Version: v9 Build 238

Game System: PF2E 3.1.3.9639

Additional context Add any other context (like other modules installed) about the problem here.

p4535992 commented 2 years ago

probably fixed with version 2.1.14