diff --git a/minetestforfun_game/mods/sethome/init.lua b/minetestforfun_game/mods/sethome/init.lua index c608bc27..b8696d79 100644 --- a/minetestforfun_game/mods/sethome/init.lua +++ b/minetestforfun_game/mods/sethome/init.lua @@ -15,7 +15,7 @@ home.sethome = function(name) end home.homepos[p_status][player:get_player_name()] = pos minetest.chat_send_player(name, "Home set!") - changed = true + local CHANGED = true if changed then local output = io.open(home.homes_file[p_status], "w") for i, v in pairs(home.homepos[p_status]) do diff --git a/mods/unified_inventory/register.lua b/mods/unified_inventory/register.lua index 47969ece..ce9ae915 100755 --- a/mods/unified_inventory/register.lua +++ b/mods/unified_inventory/register.lua @@ -48,7 +48,7 @@ unified_inventory.register_button("home_gui_set", { tooltip = S("Set home position"), action = function(player) minetest.sound_play("dingdong", - {to_player=player_name, gain = 1.0}) + {to_player=player:get_player_name(), gain = 1.0}) home.sethome(player:get_player_name()) end, })