Don't attempt to start background caching on gridless scenes, as it's currently unsupported (fixes #196)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user