mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Reset day/night ratio even when passing no arguments (#13524)
* reset day_night_ratio when passing zero fields * Update lua_api.md --------- Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
This commit is contained in:
parent
180ec92ef9
commit
b60d38b7f9
2 changed files with 2 additions and 2 deletions
|
@ -7657,7 +7657,7 @@ child will follow movement and rotation of that bone.
|
|||
* `override_day_night_ratio(ratio or nil)`
|
||||
* `0`...`1`: Overrides day-night ratio, controlling sunlight to a specific
|
||||
amount.
|
||||
* `nil`: Disables override, defaulting to sunlight based on day-night cycle
|
||||
* Passing no arguments disables override, defaulting to sunlight based on day-night cycle
|
||||
* `get_day_night_ratio()`: returns the ratio or nil if it isn't overridden
|
||||
* `set_local_animation(idle, walk, dig, walk_while_dig, frame_speed)`:
|
||||
set animation for player model in third person view.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue