Increase object search radius to avoid recreation of visuals (#44)

Fixes #43.
This commit is contained in:
ShihanAlma 2020-05-16 14:54:08 +02:00 committed by GitHub
parent 5bd47f86d7
commit c13238541a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -197,7 +197,7 @@ function drawers.spawn_visuals(pos)
end
function drawers.remove_visuals(pos)
local objs = core.get_objects_inside_radius(pos, 0.54)
local objs = core.get_objects_inside_radius(pos, 0.56)
if not objs then return end
for _, obj in pairs(objs) do

@ -434,7 +434,7 @@ core.register_lbm({
-- count the drawer visuals
local drawerType = core.registered_nodes[node.name].groups.drawer
local foundVisuals = 0
local objs = core.get_objects_inside_radius(pos, 0.54)
local objs = core.get_objects_inside_radius(pos, 0.56)
if objs then
for _, obj in pairs(objs) do
if obj and obj:get_luaentity() and