From b282d3393fc7a939dad25badaa814636061ef2d5 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Thu, 9 Oct 2025 17:55:54 +0100 Subject: [PATCH] make the auto check for minZ and maxZ more lenient --- shared/helpers.lua | 4 ++-- shared/targets.lua | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/shared/helpers.lua b/shared/helpers.lua index a8ab573..42e77c2 100644 --- a/shared/helpers.lua +++ b/shared/helpers.lua @@ -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 diff --git a/shared/targets.lua b/shared/targets.lua index 4f53404..2ed3f69 100644 --- a/shared/targets.lua +++ b/shared/targets.lua @@ -324,7 +324,6 @@ end ---}, 2.0) ---``` function createBoxTarget(data, opts, dist) - -- if force target off, use jim_bridge built in target functions if Config.System.DontUseTarget then debugPrint("^6Bridge^7: ^2Creating new ^3Box ^2target with ^6jim_bridge ^7"..data[1])