mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-07-13 05:50:19 +02:00
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:
@ -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",
|
||||
|
Reference in New Issue
Block a user