Don't attempt to start background caching on gridless scenes, as it's currently unsupported (fixes #196)

This commit is contained in:
Manuel Vögele
2022-05-06 20:22:42 +02:00
parent 1577435a33
commit d325f8acee
+3
View File
@@ -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);
}