forked from VoxeLibre/VoxeLibre
log get_light position for debug
This commit is contained in:
parent
4080c4ada4
commit
6b75b5f382
|
@ -1066,7 +1066,8 @@ local do_env_damage = function(self)
|
|||
end
|
||||
|
||||
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)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue