summaryrefslogtreecommitdiff
path: root/vacuum_tubes.lua
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2018-07-03 22:30:44 +0200
committerSmallJoker <mk939@ymail.com>2018-07-03 22:30:44 +0200
commit92a55c3985b53dd0a99460527fb88e14ddf60563 (patch)
tree596b82830e8e29ba89810acfd824319e2a35362d /vacuum_tubes.lua
parent1a396c707c6af22f3067f47df1790ce7fe56d90c (diff)
downloadpipeworks-92a55c3985b53dd0a99460527fb88e14ddf60563.tar
pipeworks-92a55c3985b53dd0a99460527fb88e14ddf60563.tar.gz
pipeworks-92a55c3985b53dd0a99460527fb88e14ddf60563.tar.bz2
pipeworks-92a55c3985b53dd0a99460527fb88e14ddf60563.tar.xz
pipeworks-92a55c3985b53dd0a99460527fb88e14ddf60563.zip
Replace deprecated Lua function calls
Diffstat (limited to 'vacuum_tubes.lua')
-rw-r--r--vacuum_tubes.lua2
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