mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00: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
|
||||
|
|
|
@ -98,6 +98,6 @@ creatura.register_mob("animalia:opossum", {
|
|||
})
|
||||
|
||||
creatura.register_spawn_item("animalia:opossum", {
|
||||
col1 = "d0602d",
|
||||
col2 = "c9c9c9"
|
||||
col1 = "75665f",
|
||||
col2 = "ccbfb8"
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue