mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-07-17 19:56:48 -04:00
Fixed crash
This commit is contained in:
parent
09f2dce19f
commit
9bafed85ea
2 changed files with 5 additions and 5 deletions
|
@ -1282,7 +1282,7 @@ creatura.register_utility("animalia:cat_follow_owner", function(self, player)
|
|||
if random(attack_chance) < 2 then
|
||||
animalia.action_melee(mob, owner)
|
||||
else
|
||||
creatura.action_idle(mob)
|
||||
creatura.action_idle(mob, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1425,7 +1425,7 @@ creatura.register_utility("animalia:tamed_idle", function(self)
|
|||
if not mob.owner or mob.order ~= "stay" then return true end
|
||||
|
||||
if not mob:get_action() then
|
||||
creatura.action_idle(mob)
|
||||
creatura.action_idle(mob, 1)
|
||||
end
|
||||
end
|
||||
self:set_utility(func)
|
||||
|
@ -1445,7 +1445,7 @@ creatura.register_utility("animalia:tamed_follow_owner", function(self, player)
|
|||
if dist > mob.width + 1 then
|
||||
animalia.action_pursue(mob, owner)
|
||||
else
|
||||
creatura.action_idle(mob)
|
||||
creatura.action_idle(mob, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue