summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Irwin <antumdeluge@gmail.com>2017-06-08 00:30:41 -0700
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-08 03:30:41 -0400
commit4cc124ff9e31f722433d999aa8efe555b1f4425e (patch)
tree39bbaa29c589dfd8a0c16d8547ef6034442fccf9
parentbf58c7731616b3ce899d4c9c25196d10b5e5e54c (diff)
Replace deprecated call to 'minetest.env' (#371)
-rw-r--r--technic/tools/vacuum.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/tools/vacuum.lua b/technic/tools/vacuum.lua
index f5fac9a..037f3bb 100644
--- a/technic/tools/vacuum.lua
+++ b/technic/tools/vacuum.lua
@@ -26,7 +26,7 @@ minetest.register_tool("technic:vacuum", {
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