summaryrefslogtreecommitdiff
path: root/legacy.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 /legacy.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 'legacy.lua')
-rw-r--r--legacy.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy.lua b/legacy.lua
index b36cded..bb92a8f 100644
--- a/legacy.lua
+++ b/legacy.lua
@@ -36,7 +36,7 @@ if not minetest.get_modpath("auto_tree_tap") and
end,
after_place_node = function (pos, placer)
pipeworks.scan_for_tube_objects(pos, placer)
- local placer_pos = placer:getpos()
+ local placer_pos = placer:get_pos()
--correct for the player's height
if placer:is_player() then placer_pos.y = placer_pos.y + 1.5 end