mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
fix the last change of action_timer|sethome do not return results and the sounds sethome|gethome were no longer played
This commit is contained in:
parent
50170dcaff
commit
fba60e122e
@ -23,7 +23,7 @@ home.sethome = function(name)
|
||||
return true
|
||||
end
|
||||
|
||||
action_timers.wrapper(name, "sethome", "sethome_" .. name, home.time, assign_home, {})
|
||||
return action_timers.wrapper(name, "sethome", "sethome_" .. name, home.time, assign_home, {})
|
||||
end
|
||||
|
||||
home.tohome = function(name)
|
||||
@ -45,7 +45,7 @@ home.tohome = function(name)
|
||||
return true
|
||||
end
|
||||
|
||||
action_timers.wrapper(name, "home", "home_" .. name, home.time, go_to_home, {})
|
||||
return action_timers.wrapper(name, "home", "home_" .. name, home.time, go_to_home, {})
|
||||
else
|
||||
minetest.chat_send_player(name, "Set a home using /sethome")
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user