From d325f8aceea13764f8a25b1132b1f795038eee9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Fri, 6 May 2022 20:22:42 +0200 Subject: [PATCH] Don't attempt to start background caching on gridless scenes, as it's currently unsupported (fixes #196) --- js/pathfinding.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/pathfinding.js b/js/pathfinding.js index cad2851..befb7ed 100644 --- a/js/pathfinding.js +++ b/js/pathfinding.js @@ -416,6 +416,9 @@ export function initializePathfinding() { } export function startBackgroundCaching(token) { + // Background caching isn't yet supported for gridless scenes + if (canvas.grid.type === CONST.GRID_TYPES.GRIDLESS) + return; if (game.user.isGM || game.settings.get(settingsKey, "allowPathfinding")) { cache.startBackgroundCaching(token); }