From fba60e122e7f7709f2ea193e38c12ef9f4efb373 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Sun, 29 Nov 2015 23:36:33 +0100 Subject: [PATCH] fix the last change of action_timer|sethome do not return results and the sounds sethome|gethome were no longer played --- minetestforfun_game/mods/sethome/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minetestforfun_game/mods/sethome/init.lua b/minetestforfun_game/mods/sethome/init.lua index 2e8a6f26..3c7dad48 100755 --- a/minetestforfun_game/mods/sethome/init.lua +++ b/minetestforfun_game/mods/sethome/init.lua @@ -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