mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-02-13 11:22:26 +01:00
Fix mobs taking damage from fire and lava even if they shouldn't
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user