Update vacuum.lua

This commit is contained in:
Panquesito7 2019-08-22 21:43:03 -05:00 committed by GitHub
parent 89ae743f52
commit cdea0c7ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ minetest.register_tool("technic:vacuum", {
gain = 0.4,
})
end
local pos = user:getpos()
local pos = user:get_pos()
local inv = user:get_inventory()
for _, object in ipairs(minetest.get_objects_inside_radius(pos, vacuum_range)) do
local luaentity = object:get_luaentity()