small fix sync with lost commit, cos upstream never document

* backported from "use api functions for riding mob"
  commit 768ef84bd88736d965c659b8b33620e4f90e350e
  as 768ef84bd8
main
general 2024-03-30 03:57:49 -04:00
parent c876bb63c7
commit 4bf2555144
1 changed files with 1 additions and 1 deletions

View File

@ -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