From 9449908565c42659c61a591e5e9d3964506328ce Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 30 May 2017 02:08:53 +0200 Subject: [PATCH] Disable fire in mob explosions --- mods/ENTITIES/mobs/api.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ENTITIES/mobs/api.lua b/mods/ENTITIES/mobs/api.lua index c2a44811d..2a976a51b 100644 --- a/mods/ENTITIES/mobs/api.lua +++ b/mods/ENTITIES/mobs/api.lua @@ -542,8 +542,8 @@ do_env_damage = function(self) -- lava or fire elseif self.lava_damage ~= 0 and (nodef.groups.lava - or self.standing_in == "fire:basic_flame" - or self.standing_in == "fire:permanent_flame") then + or self.standing_in == "mcl_fire:fire" + or self.standing_in == "mcl_fire:eternal_fire") then self.health = self.health - self.lava_damage @@ -1603,7 +1603,7 @@ local do_states = function(self, dtime) pos.y = pos.y - 1 - mobs:explosion(pos, radius, 1, 1, self.sounds.explode) + mobs:explosion(pos, radius, 0, 1, self.sounds.explode) self.object:remove() @@ -2789,7 +2789,7 @@ function mobs:explosion(pos, radius, fire, smoke, sound) and (minetest.registered_nodes[n].groups.flammable or random(1, 100) <= 30) then - minetest.set_node(p, {name = "fire:basic_flame"}) + minetest.set_node(p, {name = "mcl_fire:fire"}) else minetest.set_node(p, {name = "air"})