check for fire/lava in mob collisionbox area

* backported upstream commit ba79c2f1f14583a87163b0c4bed6a1fe20e0cd5c
This commit is contained in:
general 2024-04-07 22:07:28 -04:00
parent ae003fe323
commit 359ad19bf2

View File

@ -1227,7 +1227,7 @@ function mob_class:do_env_damage()
end
-- lava damage
elseif self.lava_damage ~= 0 and nodef.groups.lava then
elseif self.lava_damage ~= 0 and self:is_inside("group:lava") then -- nodef.groups.lava then
self.health = self.health - self.lava_damage