Jordan Irwin
2017-06-08 4cc124ff9e31f722433d999aa8efe555b1f4425e
Replace deprecated call to 'minetest.env' (#371)

1 files modified
2 ■■■ changed files
technic/tools/vacuum.lua 2 ●●● patch | view | raw | blame | history
technic/tools/vacuum.lua
@@ -26,7 +26,7 @@
        end
        local pos = user:getpos()
        local inv = user:get_inventory()
        for _, object in ipairs(minetest.env:get_objects_inside_radius(pos, vacuum_range)) do
        for _, object in ipairs(minetest.get_objects_inside_radius(pos, vacuum_range)) do
            local luaentity = object:get_luaentity()
            if not object:is_player() and luaentity and luaentity.name == "__builtin:item" and luaentity.itemstring ~= "" then
                if inv and inv:room_for_item("main", ItemStack(luaentity.itemstring)) then