From cf18cd43de43c38ad4869466457a87353a2c46e3 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 9 Jun 2023 08:32:59 +0100 Subject: [PATCH 1/2] on_breed spawns child a little higher --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index a5a7068..983bb3b 100644 --- a/api.lua +++ b/api.lua @@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20230607", + version = "20230609", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -1392,7 +1392,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) From e32d87c70d45ab6f2723f82428c34e868e5fc63b Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 13 Jun 2023 07:58:17 +0100 Subject: [PATCH 2/2] add damage_per_second nil check --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 983bb3b..11ee89d 100644 --- a/api.lua +++ b/api.lua @@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20230609", + version = "20230613", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -1141,7 +1141,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