mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
log get_light position for debug
This commit is contained in:
parent
4080c4ada4
commit
6b75b5f382
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue