mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-10-25 10:33:05 +02:00
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
|
end
|
||||||
table.insert(yl_speak_up.inform_when_reloaded, fun)
|
table.insert(yl_speak_up.inform_when_reloaded, fun)
|
||||||
minetest.log("action","[MOD] yl_speak_up Will execute function \""..tostring(desc)..
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user