1
0
Fork 0

log get_light position for debug

This commit is contained in:
cora 2022-10-02 21:58:56 +02:00
parent 4080c4ada4
commit 6b75b5f382
1 changed files with 2 additions and 1 deletions

View File

@ -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