check for fire/lava in mob collisionbox area
* backported upstream commit ba79c2f1f14583a87163b0c4bed6a1fe20e0cd5c
This commit is contained in:
parent
ae003fe323
commit
359ad19bf2
2
api.lua
2
api.lua
@ -1227,7 +1227,7 @@ function mob_class:do_env_damage()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- lava damage
|
-- 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
|
self.health = self.health - self.lava_damage
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user