Take into account that the hex size support module may not be installed (fixes #241)
This commit is contained in:
1 parent
4b5fea0763
commit
c2aa47985b
1 file changed
+1
-1
+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