mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-09 16:33:44 +01:00
Increase object search radius to avoid recreation of visuals (#44)
Fixes #43.
This commit is contained in:
parent
5bd47f86d7
commit
c13238541a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user