From ccc3af128cb4b6213b8111115c570fe988d3523b Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Wed, 6 Jun 2018 12:53:59 +0200 Subject: CSM/SSM: Add on_mods_loaded callback (#7411) * CSM/SSM: Add on_mods_loaded callback --- doc/client_lua_api.txt | 2 ++ doc/lua_api.txt | 3 +++ 2 files changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt index bdefa3af5..46b47d892 100644 --- a/doc/client_lua_api.txt +++ b/doc/client_lua_api.txt @@ -648,6 +648,8 @@ Call these functions only at load time! * `minetest.register_globalstep(func(dtime))` * Called every client environment step, usually interval of 0.1s +* `minetest.register_on_mods_loaded(func())` + * Called just after mods have finished loading. * `minetest.register_on_shutdown(func())` * Called before client shutdown * **Warning**: If the client terminates abnormally (i.e. crashes), the registered diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b89ba47c6..d9cf96800 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2793,6 +2793,9 @@ Call these functions only at load time! * `minetest.register_globalstep(func(dtime))` * Called every server step, usually interval of 0.1s +* `minetest.register_on_mods_loaded(func())` + * Called after mods have finished loading and before the media is cached or the + aliases handled. * `minetest.register_on_shutdown(func())` * Called before server shutdown * **Warning**: If the server terminates abnormally (i.e. crashes), the -- cgit v1.2.3