From 46aec225dd28e77a390d9f719bedeb0c2c3bf968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Sat, 15 Oct 2022 18:35:59 +0200 Subject: [PATCH] Take into account that the hex size support module may not be installed --- js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/util.js b/js/util.js index 48a95e5..97c4b2a 100644 --- a/js/util.js +++ b/js/util.js @@ -75,7 +75,7 @@ export function getHexTokenSize(token) { // A copy of this function lives in the drag ruler module export function getAltOrientationFlagForToken(token, size) { - const hexSizeSupport = game.modules.get("hex-size-support").api; + const hexSizeSupport = game.modules.get("hex-size-support")?.api; if (hexSizeSupport) { return hexSizeSupport.isAltOrientation(token); }