Only enable pathfinding on square grids
This commit is contained in:
1 parent
a5b40382d7
commit
b8c29de841
1 file changed
+2
@@ -13,6 +13,8 @@ export function initializePathfinding() {
|
||||
}
|
||||
|
||||
export function isPathfindingEnabled() {
|
||||
if (canvas.grid.type !== CONST.GRID_TYPES.SQUARE)
|
||||
return false;
|
||||
if (!game.settings.get(settingsKey, "allowPathfinding"))
|
||||
return false;
|
||||
return game.settings.get(settingsKey, "autoPathfinding") != togglePathfinding;
|
||||
|
||||
Reference in new issue
Block a user