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

@ -48,7 +48,7 @@ unified_inventory.register_button("home_gui_set", {
action = function(player)
local player_name = player:get_player_name()
if minetest.check_player_privs(player_name, {home=true}) then
unified_inventory.set_home(player, player:getpos())
unified_inventory.set_home(player, player:get_pos())
local home = unified_inventory.home_pos[player_name]
if home ~= nil then
minetest.sound_play("dingdong",