CarlosFdez / world-explorer

Foundry VTT Module for manual hexcrawl revealing
17 stars 5 forks source link

Uncaught TypeError: polygon.contains is not a function #4

Closed SCHayworth closed 3 years ago

SCHayworth commented 3 years ago

I was testing this out on the Forbidden Lands system, and I'm getting the following error whenever I move over the map:

world-explorer-layer.mjs:191 Uncaught TypeError: polygon.contains is not a function
[Detected 1 package: world-explorer]
    at world-explorer-layer.mjs:191
    at Array.findIndex (<anonymous>)
    at WorldExplorerLayer._getIndex (world-explorer-layer.mjs:189)
    at WorldExplorerLayer.isRevealed (world-explorer-layer.mjs:196)
    at e.<anonymous> (world-explorer-layer.mjs:261)
    at e.a.emit (index.js:181)
    at r.dispatchEvent (interaction.min.js:8)
    at r.processPointerMove (interaction.min.js:8)
    at t.recursiveFindHit (interaction.min.js:8)
    at t.findHit (interaction.min.js:8)
    at r.processInteractive (interaction.min.js:8)
    at r.onPointerMove (interaction.min.js:8)
(anonymous) @ world-explorer-layer.mjs:191
_getIndex @ world-explorer-layer.mjs:189
isRevealed @ world-explorer-layer.mjs:196
(anonymous) @ world-explorer-layer.mjs:261
a.emit @ index.js:181
r.dispatchEvent @ interaction.min.js:8
r.processPointerMove @ interaction.min.js:8
t.recursiveFindHit @ interaction.min.js:8
t.findHit @ interaction.min.js:8
r.processInteractive @ interaction.min.js:8
r.onPointerMove @ interaction.min.js:8

I tried deactivating modules, and I still get the error in the console.

CarlosFdez commented 3 years ago

I got this message on discord. I had thought I re-tested on hex grids but I guess I had not. Fixed in 0.1.3.