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); }