Skip to content

Commit

Permalink
Take into account that the hex size support module may not be installed
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelVo committed Oct 15, 2022
1 parent 83300fb commit 46aec22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 46aec22

Please sign in to comment.