Replace deprecated Lua function calls

This commit is contained in:
SmallJoker
2018-07-03 22:30:44 +02:00
parent 1a396c707c
commit 92a55c3985
5 changed files with 33 additions and 31 deletions

View File

@ -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