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