]> git.lizzy.rs Git - Crafter.git/commitdiff
Fix mobs catching on fire at night
authoroilboi <47129783+oilboi@users.noreply.github.com>
Thu, 25 Jun 2020 05:23:05 +0000 (01:23 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Thu, 25 Jun 2020 05:23:05 +0000 (01:23 -0400)
mods/mob/api/interaction.lua

index fa3fe907aafae5affe382916003def1b28ba7719..fa805583493ef60c03fcaad5cb449c07c8e21a76 100644 (file)
@@ -68,7 +68,7 @@ mobs.create_interaction_functions = function(def,mob_register)
                        else
                                head_pos = table.copy(pos)
                                head_pos.y = head_pos.y + self.object:get_properties().collisionbox[5]
-                               light = minetest.get_node_light(head_pos, 0.5)                          
+                               light = minetest.get_node_light(head_pos)
                                if light and light == 15 then
                                        if weather_type == 2 then
                                                fire_it_up = false