Take into account that the hex size support module may not be installed (fixes #241)
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user