mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-04-01 10:10:36 +02: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
|
return true
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
home.tohome = function(name)
|
home.tohome = function(name)
|
||||||
@ -45,7 +45,7 @@ home.tohome = function(name)
|
|||||||
return true
|
return true
|
||||||
end
|
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
|
else
|
||||||
minetest.chat_send_player(name, "Set a home using /sethome")
|
minetest.chat_send_player(name, "Set a home using /sethome")
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user