1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-23 08:20:21 +01:00

Removed two global variables

Thanks to crabman for having warned me.
This commit is contained in:
LeMagnesium 2015-02-11 16:04:38 +01:00
parent e03603683c
commit f2a6d646aa
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ home.sethome = function(name)
end end
home.homepos[p_status][player:get_player_name()] = pos home.homepos[p_status][player:get_player_name()] = pos
minetest.chat_send_player(name, "Home set!") minetest.chat_send_player(name, "Home set!")
changed = true local CHANGED = true
if changed then if changed then
local output = io.open(home.homes_file[p_status], "w") local output = io.open(home.homes_file[p_status], "w")
for i, v in pairs(home.homepos[p_status]) do for i, v in pairs(home.homepos[p_status]) do

View File

@ -48,7 +48,7 @@ unified_inventory.register_button("home_gui_set", {
tooltip = S("Set home position"), tooltip = S("Set home position"),
action = function(player) action = function(player)
minetest.sound_play("dingdong", 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()) home.sethome(player:get_player_name())
end, end,
}) })