mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-16 21:46:03 +01:00
make the auto check for minZ and maxZ more lenient
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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])
|
||||||
|
|||||||
Reference in New Issue
Block a user