Compare commits
1 Commits
master
...
light_dump
Author | SHA1 | Date |
---|---|---|
cora | 6b75b5f382 |
|
@ -1066,7 +1066,8 @@ local do_env_damage = function(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
local sunlight = 10
|
local sunlight = 10
|
||||||
if within_limits(pos,0) then
|
if within_limits(pos,0) and minetest.get_node(pos) then
|
||||||
|
minetest.log("action","get_light_pos: "..minetest.pos_to_string(pos))
|
||||||
sunlight = minetest.get_natural_light(pos, self.time_of_day)
|
sunlight = minetest.get_natural_light(pos, self.time_of_day)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue