From 92a55c3985b53dd0a99460527fb88e14ddf60563 Mon Sep 17 00:00:00 2001
From: SmallJoker <mk939@ymail.com>
Date: Tue, 3 Jul 2018 22:30:44 +0200
Subject: Replace deprecated Lua function calls

---
 vacuum_tubes.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'vacuum_tubes.lua')

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
-- 
cgit v1.2.3