diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-04 15:55:37 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-04 15:55:37 +0200 |
commit | 09c48b60bd0430084d0d5a93357147e5279f071b (patch) | |
tree | c824795332cd801c1cdc62c502a58258f7371302 /data/mods/default | |
parent | 4cc117ddf6149b5b488e598a620674c8df208eac (diff) | |
download | minetest-09c48b60bd0430084d0d5a93357147e5279f071b.tar.gz minetest-09c48b60bd0430084d0d5a93357147e5279f071b.tar.bz2 minetest-09c48b60bd0430084d0d5a93357147e5279f071b.zip |
Add EnvRef:get_node_light(pos, timeofday)
Diffstat (limited to 'data/mods/default')
-rw-r--r-- | data/mods/default/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 7f0614e20..1bd1eba4a 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -146,6 +146,8 @@ -- ^ Returns {name="ignore", ...} for unloaded area -- - get_node_or_nil(pos) -- ^ Returns nil for unloaded area +-- - get_node_light(pos, timeofday) -> 0...15 or nil +-- ^ timeofday: nil = current time, 0 = night, 0.5 = day -- - add_luaentity(pos, name) -- - add_item(pos, itemstring) -- - add_rat(pos) |