From 0623d525d38752f0ee0e2c4856229f2fba620912 Mon Sep 17 00:00:00 2001 From: AiTechEye <40591179+AiTechEye@users.noreply.github.com> Date: Tue, 24 Jul 2018 15:50:46 +0200 Subject: [PATCH] Update init.lua --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fcd53bd..5129c62 100644 --- a/init.lua +++ b/init.lua @@ -296,7 +296,7 @@ end smartshop.update=function(pos,stat) --clear local spos=minetest.pos_to_string(pos) - for _, ob in ipairs(minetest.env:get_objects_inside_radius(pos, 2)) do + for _, ob in ipairs(minetest.get_objects_inside_radius(pos, 2)) do if ob and ob:get_luaentity() and ob:get_luaentity().smartshop and ob:get_luaentity().pos==spos then ob:remove() end