diff options
Diffstat (limited to 'vacuum_tubes.lua')
-rw-r--r-- | vacuum_tubes.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vacuum_tubes.lua b/vacuum_tubes.lua index 211c3ee..d616835 100644 --- a/vacuum_tubes.lua +++ b/vacuum_tubes.lua @@ -87,7 +87,7 @@ local function vacuum(pos, radius) for _, object in pairs(minetest.get_objects_inside_radius(pos, math.sqrt(3) * radius)) do local lua_entity = object:get_luaentity() if not object:is_player() and lua_entity and lua_entity.name == "__builtin:item" then - local obj_pos = object:getpos() + local obj_pos = object:get_pos() local minpos = vector.subtract(pos, radius) local maxpos = vector.add(pos, radius) if obj_pos.x >= minpos.x and obj_pos.x <= maxpos.x |