From f746f4b1e02456092b81d3a94547d4b63584e47d Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 12 Oct 2024 10:27:25 +0100 Subject: [PATCH] fix knockback when breeding --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index ad9f468..923c394 100644 --- a/api.lua +++ b/api.lua @@ -18,7 +18,7 @@ end mobs = { mod = "redo", - version = "20241011", + version = "20241012", spawning_mobs = {}, translate = S, invis = minetest.global_exists("invisibility") and invisibility or {}, @@ -3320,7 +3320,7 @@ function mob_class:on_step(dtime, moveresult) self.pause_timer = self.pause_timer - dtime - if self.pause_timer < 0 and self.order == "stand" then + if self.pause_timer <= 0 and (self.order == "stand" or self.state == "stand") then self.pause_timer = 0 self:set_velocity(0)