Update init.lua

master
AiTechEye 2018-07-24 15:50:46 +02:00 committed by GitHub
parent ee39f58622
commit 0623d525d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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