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