small fix sync with lost commit, cos upstream never document
* backported from "use api functions for riding mob"
commit 768ef84bd88736d965c659b8b33620e4f90e350e
as 768ef84bd8
This commit is contained in:
parent
c876bb63c7
commit
4bf2555144
2
api.lua
2
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user