diff --git a/api.lua b/api.lua index 80222fc..7f3e734 100644 --- a/api.lua +++ b/api.lua @@ -27,7 +27,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20230607", + version = "20230613", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -1206,7 +1206,7 @@ function mob_class:do_env_damage() end -- damage_per_second node check (not fire and lava) - elseif nodef.damage_per_second ~= 0 + elseif nodef.damage_per_second and nodef.damage_per_second ~= 0 and nodef.groups.lava == nil and nodef.groups.fire == nil then self.health = self.health - nodef.damage_per_second @@ -1457,7 +1457,7 @@ function mob_class:breed() local pos = self.object:get_pos() ; if not pos then return end local ent = self.object:get_luaentity() - pos.y = pos.y + (ent.collisionbox[2] * -1) - 0.4 + pos.y = pos.y + (ent.collisionbox[2] * -1) self.object:set_pos(pos)