Remove support for TerrainLayer (Enhanced Terrain Layer stays supported)

This commit is contained in:
Manuel Vögele
2021-11-21 16:51:36 +01:00
parent b275e777db
commit a3be4ceb03
4 changed files with 6 additions and 9 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ export function measure(destination, options={}) {
options.ignoreGrid = false;
}
options.enableTerrainRuler = isToken && game.modules.get("terrain-ruler")?.active && (!game.modules.get("TerrainLayer")?.active || canvas.grid.type !== CONST.GRID_TYPES.GRIDLESS);
options.enableTerrainRuler = isToken && game.modules.get("terrain-ruler")?.active;
const waypoints = this.waypoints.concat([destination]);
// Move the waypoints to the center of the grid if a size is used that measures from edge to edge