]> git.lizzy.rs Git - dragonfireclient.git/commit
Add minetest.get_artificial_light and minetest.get_natural_light (#5680)
authorHybridDog <3192173+HybridDog@users.noreply.github.com>
Tue, 6 Oct 2020 18:49:46 +0000 (20:49 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 18:49:46 +0000 (20:49 +0200)
commit2f4037752b023f87ca1f8859a8dce4f833353967
tree5c52b01857c8c46d709d43d1bbc194a3805acded
parente80fc22dd996e5b0efd8c4f67700c0920e323e46
Add minetest.get_artificial_light and minetest.get_natural_light (#5680)

Add more detailed light detection functions, a function to get the artificial light (torches) and a function to get the sunlight as seen by the player (you can specify timeofday).

Co-authored-by: rubenwardy <rw@rubenwardy.com>
builtin/game/misc.lua
doc/lua_api.txt
games/devtest/mods/testtools/init.lua
games/devtest/mods/testtools/light.lua [new file with mode: 0644]
games/devtest/mods/testtools/textures/testtools_lighttool.png [new file with mode: 0644]
src/script/lua_api/l_env.cpp
src/script/lua_api/l_env.h
src/serverenvironment.cpp
src/serverenvironment.h