GriefPrevention3D v18.3.7
What's new
v18.3.7: cut clicks work at any Y level
GriefPrevention3D v18.3.7
Wiki: https://github.com/castledking/GriefPrevention3D/wiki
Overview
This is a fix release for the shaped claim cuts introduced in v18.3.6. Cut clicks only worked when every click landed at the same Y level; otherwise the path failed to close and players saw "The resulting shape is not valid".
Root cause
Cut click classification used the claim's 3D containment check
(claim.contains(location, ...)), which requires the clicked block's Y to fall inside the
claim's height range. Shaped claims are 2D — their geometry lives entirely in the X/Z plane — so
a player clicking on terrain above or below that band produced a point that counted as neither
interior nor boundary. The cut path could then never detect closure, and finalization rejected
the shape.
Fix
All six cut-flow classification checks now test the click's X/Z coordinates against the boundary
polygon directly (polygon.containsCell(x, z)) instead of the 3D location check:
- interior-cut-click detection (both handler paths);
- general interior-click detection;
- boundary-closure detection (clicking back onto the boundary to finish the cut).
Y level no longer plays any role in shaped claim cuts: you can seed, shape, and close a cut from any elevation.
Upgrade notes
No configuration, storage, or migration changes. Drop-in replacement for v18.3.6.
This mod has no additional files

