From b616ce734f36a6a03ae9e9dd28c822562d8e0f94 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 6 Jan 2021 13:31:51 +0100 Subject: [PATCH] Fix mobs taking damage from fire and lava even if they shouldn't --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 641105e73..29602e740 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -1148,7 +1148,7 @@ local do_env_damage = function(self) end -- damage_per_second node check - elseif nodef.damage_per_second ~= 0 then + elseif nodef.damage_per_second ~= 0 and not nodef.groups.lava and not nodef.groups.fire then self.health = self.health - nodef.damage_per_second