summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2018-06-06 12:53:59 +0200
committerGitHub <noreply@github.com>2018-06-06 12:53:59 +0200
commitccc3af128cb4b6213b8111115c570fe988d3523b (patch)
tree38a2f8cb43018759ca234ef1de62a43ff5049704 /doc
parenta2de439a91df6876e13230696c05957a9da8b2ce (diff)
downloadminetest-ccc3af128cb4b6213b8111115c570fe988d3523b.tar.gz
minetest-ccc3af128cb4b6213b8111115c570fe988d3523b.tar.bz2
minetest-ccc3af128cb4b6213b8111115c570fe988d3523b.zip
CSM/SSM: Add on_mods_loaded callback (#7411)
* CSM/SSM: Add on_mods_loaded callback
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.txt2
-rw-r--r--doc/lua_api.txt3
2 files changed, 5 insertions, 0 deletions
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