From 09c48b60bd0430084d0d5a93357147e5279f071b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 4 Dec 2011 15:55:37 +0200 Subject: Add EnvRef:get_node_light(pos, timeofday) --- data/mods/default/init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data/mods/default') 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) -- cgit v1.2.3