mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-09 17:30:21 +01:00
fix knockback when breeding
This commit is contained in:
parent
e59fd53ee9
commit
f746f4b1e0
4
api.lua
4
api.lua
@ -18,7 +18,7 @@ end
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20241011",
|
version = "20241012",
|
||||||
spawning_mobs = {},
|
spawning_mobs = {},
|
||||||
translate = S,
|
translate = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
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
|
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.pause_timer = 0
|
||||||
self:set_velocity(0)
|
self:set_velocity(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user