From b4de15466835cfb155aeb634604d63b69959e2a8 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Thu, 14 Jan 2016 21:06:34 +0100 Subject: [PATCH] [pclasses] Reduce verification radii previously overlapping - Fix #381 --- mods/pclasses/nodes.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/pclasses/nodes.lua b/mods/pclasses/nodes.lua index 62f93f2d..ae0209b8 100755 --- a/mods/pclasses/nodes.lua +++ b/mods/pclasses/nodes.lua @@ -92,7 +92,7 @@ function pclasses.register_class_switch(cname, params) pos.y = pos.y + 1 -- Clean remaining entities - for _,ref in pairs(minetest.get_objects_inside_radius(pos, 1)) do + for _,ref in pairs(minetest.get_objects_inside_radius(pos, 0.3)) do local e = ref:get_luaentity() if e and e.name == "pclasses:item" then ref:remove() @@ -110,7 +110,7 @@ function pclasses.register_class_switch(cname, params) end, on_timer = function(pos) pos.y = pos.y + 1 - for _,ref in pairs(minetest.get_objects_inside_radius(pos, 1)) do + for _,ref in pairs(minetest.get_objects_inside_radius(pos, 0.3)) do local e = ref:get_luaentity() if e and e.name == "pclasses:item" then return true @@ -126,7 +126,7 @@ function pclasses.register_class_switch(cname, params) end, on_destruct = function(pos) pos.y = pos.y + 1 - for _,ref in pairs(minetest.get_objects_inside_radius(pos, 1)) do + for _,ref in pairs(minetest.get_objects_inside_radius(pos, 0.3)) do local e = ref:get_luaentity() if e and e.name == "pclasses:item" then ref:remove()