improved register_on_reload

This commit is contained in:
Sokomine 2023-07-09 03:05:29 +02:00
parent f1072821f1
commit 8d87a22a11

View File

@ -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