From c2aa47985b14eb0cc95930f3a6e4f8cf60d5558b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Sat, 15 Oct 2022 18:39:44 +0200 Subject: [PATCH] Take into account that the hex size support module may not be installed (fixes #241) --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index d397a53..4c70eaa 100644 --- a/src/util.js +++ b/src/util.js @@ -64,7 +64,7 @@ export function getEntityCenter(token) { // A copy of this function lives in the routinglib 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); }