From e102e52cff665d1778633b4f20733196ea60b71b Mon Sep 17 00:00:00 2001 From: berengma Date: Sun, 24 Mar 2019 11:29:35 +0100 Subject: [PATCH] update deprecated functions --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index c847c04..5e267bc 100644 --- a/init.lua +++ b/init.lua @@ -153,7 +153,7 @@ minetest.register_globalstep(function(dtime) local name = player:get_player_name() if aviation[name] ~= nil and aviation[name] ~= {} then - local pos = player:getpos() + local pos = player:get_pos() local ntime = minetest.get_node_timer(aviation[name]) local timeout = ntime:get_timeout() local elapsed = ntime:get_elapsed()