From 91134015e77485bd991c1b278b7045fcd5e6253a Mon Sep 17 00:00:00 2001 From: AFCMS Date: Sun, 3 Dec 2023 09:00:29 +0100 Subject: [PATCH] Document `minetest.get_gametime()` returning `nil` at init time (#14047) Co-authored-by: sfan5 --- doc/lua_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lua_api.md b/doc/lua_api.md index a15225246..54b366b55 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -5920,7 +5920,7 @@ Environment access * `val` is between `0` and `1`; `0` for midnight, `0.5` for midday * `minetest.get_timeofday()` * `minetest.get_gametime()`: returns the time, in seconds, since the world was - created. + created. The time is not available (`nil`) before the first server step. * `minetest.get_day_count()`: returns number days elapsed since world was created. * accounts for time changes.