mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Document minetest.get_gametime()
returning nil
at init time (#14047)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
047520d91e
commit
91134015e7
@ -5920,7 +5920,7 @@ Environment access
|
|||||||
* `val` is between `0` and `1`; `0` for midnight, `0.5` for midday
|
* `val` is between `0` and `1`; `0` for midnight, `0.5` for midday
|
||||||
* `minetest.get_timeofday()`
|
* `minetest.get_timeofday()`
|
||||||
* `minetest.get_gametime()`: returns the time, in seconds, since the world was
|
* `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
|
* `minetest.get_day_count()`: returns number days elapsed since world was
|
||||||
created.
|
created.
|
||||||
* accounts for time changes.
|
* accounts for time changes.
|
||||||
|
Loading…
Reference in New Issue
Block a user