From 68081bd7e1eb68c6497a021da0586bc4d4a00b67 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Thu, 26 Feb 2026 02:09:31 +0100 Subject: [PATCH] Correct option useage --- module/canvas/placeables/regionLayer.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/canvas/placeables/regionLayer.mjs b/module/canvas/placeables/regionLayer.mjs index 6563a7ac..c54a569c 100644 --- a/module/canvas/placeables/regionLayer.mjs +++ b/module/canvas/placeables/regionLayer.mjs @@ -58,7 +58,7 @@ export default class DhRegionLayer extends foundry.canvas.layers.RegionLayer { return x.between(t.x, t.x + t.width * gridSize) && y.between(t.y, t.y + t.height * gridSize); }); - if (inBounds.length !== 1) return options.basePreConfirm?.() ?? true; + if (inBounds.length !== 1) return options.preConfirm?.() ?? true; const shapeData = shape.toObject(); const token = inBounds[0]; @@ -78,7 +78,7 @@ export default class DhRegionLayer extends foundry.canvas.layers.RegionLayer { }); } - return options?.basePreConfirm?.() ?? true; + return options?.preConfirm?.() ?? true; }; super.placeRegion(data, { ...options, preConfirm });