From 9ab447843be1580e2296db5d27daaf01ab0c0512 Mon Sep 17 00:00:00 2001 From: Yoruma <168607605+Mahoyomu@users.noreply.github.com> Date: Sat, 22 Jun 2024 16:59:58 +0800 Subject: [PATCH] Clarify "dtime" in API (#14758) --- doc/client_lua_api.md | 3 ++- doc/lua_api.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index 260603971..a7b26c7c3 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -314,7 +314,8 @@ Minetest namespace reference Call these functions only at load time! * `minetest.register_globalstep(function(dtime))` - * Called every client environment step, usually interval of 0.1s + * Called every client environment step + * `dtime` is the time since last execution in seconds. * `minetest.register_on_mods_loaded(function())` * Called just after mods have finished loading. * `minetest.register_on_shutdown(function())` diff --git a/doc/lua_api.md b/doc/lua_api.md index c733fc0a3..ac2304bca 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -5714,7 +5714,8 @@ Global callback registration functions Call these functions only at load time! * `minetest.register_globalstep(function(dtime))` - * Called every server step, usually interval of 0.1s + * Called every server step, usually interval of 0.1s. + * `dtime` is the time since last execution in seconds. * `minetest.register_on_mods_loaded(function())` * Called after mods have finished loading and before the media is cached or the aliases handled.