Replace deprecated functions with newer ones (#36)

This commit replaces a few deprecated calls to getpos with get_pos
This commit is contained in:
Panquesito7
2019-07-10 13:26:42 -05:00
committed by SmallJoker
parent 6218e5884d
commit 5527dc8945
3 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ minetest.register_chatcommand("area_pos1", {
elseif param == "" then
local player = minetest.get_player_by_name(name)
if player then
pos = player:getpos()
pos = player:get_pos()
else
return false, "Unable to get position."
end
@ -80,7 +80,7 @@ minetest.register_chatcommand("area_pos2", {
elseif param == "" then
local player = minetest.get_player_by_name(name)
if player then
pos = player:getpos()
pos = player:get_pos()
else
return false, "Unable to get position."
end