From 24f1e78092aaa0c76786f48ca517ef7d374f167e Mon Sep 17 00:00:00 2001 From: Argonius-Angelus Date: Wed, 15 Sep 2021 06:48:00 +0100 Subject: [PATCH] Updated getFlag behaviour (#114) Updated getFlag behaviour to use Document#getFlag rather than the depreciated PlaceableObject#getFlag. Due to the min core version being marked as 0.8.5, this won't cause a 0.7 compatability issue. --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index d46faf8..2cbdd5d 100644 --- a/src/util.js +++ b/src/util.js @@ -11,7 +11,7 @@ export function getSnapPointForToken(x, y, token) { return new PIXI.Point(x, y); } if (canvas.grid.isHex && game.modules.get("hex-size-support")?.active && CONFIG.hexSizeSupport.getAltSnappingFlag(token)) { - if (token.getFlag("hex-size-support", "borderSize") % 2 === 0) { + if (token.document.getFlag("hex-size-support", "borderSize") % 2 === 0) { const snapPoint = CONFIG.hexSizeSupport.findVertexSnapPoint(x, y, token, canvas.grid.grid) return new PIXI.Point(snapPoint.x, snapPoint.y) }