aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testtools/init.lua
diff options
context:
space:
mode:
authorHybridDog <3192173+HybridDog@users.noreply.github.com>2020-10-06 20:49:46 +0200
committerGitHub <noreply@github.com>2020-10-06 20:49:46 +0200
commit2f4037752b023f87ca1f8859a8dce4f833353967 (patch)
tree5c52b01857c8c46d709d43d1bbc194a3805acded /games/devtest/mods/testtools/init.lua
parente80fc22dd996e5b0efd8c4f67700c0920e323e46 (diff)
downloadhax-minetest-server-2f4037752b023f87ca1f8859a8dce4f833353967.tar.gz
hax-minetest-server-2f4037752b023f87ca1f8859a8dce4f833353967.zip
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>
Diffstat (limited to 'games/devtest/mods/testtools/init.lua')
-rw-r--r--games/devtest/mods/testtools/init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/games/devtest/mods/testtools/init.lua b/games/devtest/mods/testtools/init.lua
index df5bc8e55..d578b264a 100644
--- a/games/devtest/mods/testtools/init.lua
+++ b/games/devtest/mods/testtools/init.lua
@@ -1,6 +1,8 @@
local S = minetest.get_translator("testtools")
local F = minetest.formspec_escape
+dofile(minetest.get_modpath("testtools") .. "/light.lua")
+
-- TODO: Add a Node Metadata tool
minetest.register_tool("testtools:param2tool", {