Compare commits

...

1 Commits

Author SHA1 Message Date
cora 6b75b5f382 log get_light position for debug 2022-10-02 21:58:56 +02:00
1 changed files with 2 additions and 1 deletions

View File

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