Fix mobs taking damage from fire and lava even if they shouldn't

This commit is contained in:
Elias Fleckenstein 2021-01-06 13:31:51 +01:00
parent f68a75f184
commit b616ce734f

View file

@ -1148,7 +1148,7 @@ local do_env_damage = function(self)
end end
-- damage_per_second node check -- 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 self.health = self.health - nodef.damage_per_second