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) function adjustMinMaxZ(coord, table)
local table = table local table = table
local adMinZ, adMaxZ = false, false local adMinZ, adMaxZ = false, false
if table.minZ > coord.z then if table.minZ > (coord.z + 0.1) then
adMinZ = true adMinZ = true
table.minZ = (coord.z - 1.05) table.minZ = (coord.z - 1.05)
end end
if table.maxZ < coord.z then if table.maxZ < (coord.z - 0.1) then
adMinZ = true adMinZ = true
table.maxZ = (coord.z + 0.80) table.maxZ = (coord.z + 0.80)
end end

View File

@@ -324,7 +324,6 @@ end
---}, 2.0) ---}, 2.0)
---``` ---```
function createBoxTarget(data, opts, dist) function createBoxTarget(data, opts, dist)
-- if force target off, use jim_bridge built in target functions -- if force target off, use jim_bridge built in target functions
if Config.System.DontUseTarget then if Config.System.DontUseTarget then
debugPrint("^6Bridge^7: ^2Creating new ^3Box ^2target with ^6jim_bridge ^7"..data[1]) debugPrint("^6Bridge^7: ^2Creating new ^3Box ^2target with ^6jim_bridge ^7"..data[1])