From 6b75b5f3824f066aa4e46508f08c1cdf8af55cdf Mon Sep 17 00:00:00 2001 From: cora Date: Sun, 2 Oct 2022 21:58:56 +0200 Subject: [PATCH] log get_light position for debug --- mods/ENTITIES/mcl_mobs/api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 559de5d85..a16128201 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -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