improved register_on_reload
This commit is contained in:
parent
f1072821f1
commit
8d87a22a11
4
init.lua
4
init.lua
@ -14,7 +14,9 @@ yl_speak_up.register_on_reload = function(fun, desc)
|
||||
end
|
||||
table.insert(yl_speak_up.inform_when_reloaded, fun)
|
||||
minetest.log("action","[MOD] yl_speak_up Will execute function \""..tostring(desc)..
|
||||
"\" on reload.")
|
||||
"\" on each reload.")
|
||||
-- execute it once so that the calling mod doesn't have to do that manually
|
||||
fun()
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user