From 4bf25551440742e5c030ed33ccf65d69859e8414 Mon Sep 17 00:00:00 2001 From: general Date: Sat, 30 Mar 2024 03:57:49 -0400 Subject: [PATCH] small fix sync with lost commit, cos upstream never document * backported from "use api functions for riding mob" commit 768ef84bd88736d965c659b8b33620e4f90e350e as https://codeberg.org/tenplus1/mobs_redo/commit/768ef84bd88736d965c659b8b33620e4f90e350e --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index fbdf495..6e296ae 100644 --- a/api.lua +++ b/api.lua @@ -3549,7 +3549,7 @@ function mob_class:on_step(dtime, moveresult) -- check and stop if standing at cliff and fear of heights self.at_cliff = self:is_at_cliff() - if self.pause_timer <= 0 and self.at_cliff then + if self.pause_timer < 0 and self.at_cliff then self:set_velocity(0) end