1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

debug et ajout de timer dans sethome

This commit is contained in:
2015-02-12 17:19:53 +01:00
parent f2a6d646aa
commit 2d7941209f
2 changed files with 38 additions and 27 deletions

View File

@ -47,9 +47,10 @@ unified_inventory.register_button("home_gui_set", {
image = "ui_sethome_icon.png",
tooltip = S("Set home position"),
action = function(player)
minetest.sound_play("dingdong",
if home.sethome(player:get_player_name()) == true then
minetest.sound_play("dingdong",
{to_player=player:get_player_name(), gain = 1.0})
home.sethome(player:get_player_name())
end
end,
})