Replace deprecated functions with newer ones (#131)

These commits makes more compatibility with MT/MTG 5.0.0+ versions.
However, these commits breaks compatibility with the 0.4-series.
This commit is contained in:
Panquesito7
2019-06-16 03:26:40 -05:00
committed by SmallJoker
parent a70ffb1509
commit 4403b696be
5 changed files with 16 additions and 9 deletions

View File

@ -187,7 +187,7 @@ end
function unified_inventory.go_home(player)
local pos = unified_inventory.home_pos[player:get_player_name()]
if pos then
player:setpos(pos)
player:set_pos(pos)
end
end