mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-22 15:42:20 +00:00
Crash fix
This commit is contained in:
parent
abcbff4c05
commit
8954aa3493
1 changed files with 4 additions and 4 deletions
|
@ -888,7 +888,7 @@ creatura.register_utility("animalia:wander", function(self)
|
|||
if vec_dist(pos, center) > _self.tracking_range / 3 then
|
||||
speed, anim = 0.75, "run"
|
||||
end
|
||||
animalia.action_wander_walk(_self, 3, vec_add(pos, vec_multi(dir, 3)), speed, anim)
|
||||
animalia.action_wander_walk(_self, 3, dir and vec_add(pos, vec_multi(dir, 3)), speed, anim)
|
||||
else
|
||||
creatura.action_idle(_self, random(idle_max), "stand")
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue