Replace deprecated function calls

This commit is contained in:
SmallJoker
2018-07-01 21:44:03 +02:00
committed by Paramat
parent 0df2753a68
commit 255031fc91
12 changed files with 51 additions and 51 deletions

View File

@ -89,7 +89,7 @@ minetest.register_chatcommand("sethome", {
func = function(name)
name = name or "" -- fallback to blank name if nil
local player = minetest.get_player_by_name(name)
if player and sethome.set(name, player:getpos()) then
if player and sethome.set(name, player:get_pos()) then
return true, "Home set!"
end
return false, "Player not found!"