make the auto check for minZ and maxZ more lenient

This commit is contained in:
Jim Shield
2025-10-09 17:55:54 +01:00
parent 180cc7b2a2
commit b282d3393f
2 changed files with 2 additions and 3 deletions

View File

@@ -961,11 +961,11 @@ end
function adjustMinMaxZ(coord, table)
local table = table
local adMinZ, adMaxZ = false, false
if table.minZ > coord.z then
if table.minZ > (coord.z + 0.1) then
adMinZ = true
table.minZ = (coord.z - 1.05)
end
if table.maxZ < coord.z then
if table.maxZ < (coord.z - 0.1) then
adMinZ = true
table.maxZ = (coord.z + 0.80)
end