Fixed crash

This commit is contained in:
ElCeejo 2024-01-04 21:25:51 -08:00
parent 09f2dce19f
commit 9bafed85ea
2 changed files with 5 additions and 5 deletions

View file

@ -1282,7 +1282,7 @@ creatura.register_utility("animalia:cat_follow_owner", function(self, player)
if random(attack_chance) < 2 then if random(attack_chance) < 2 then
animalia.action_melee(mob, owner) animalia.action_melee(mob, owner)
else else
creatura.action_idle(mob) creatura.action_idle(mob, 1)
end end
end 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.owner or mob.order ~= "stay" then return true end
if not mob:get_action() then if not mob:get_action() then
creatura.action_idle(mob) creatura.action_idle(mob, 1)
end end
end end
self:set_utility(func) self:set_utility(func)
@ -1445,7 +1445,7 @@ creatura.register_utility("animalia:tamed_follow_owner", function(self, player)
if dist > mob.width + 1 then if dist > mob.width + 1 then
animalia.action_pursue(mob, owner) animalia.action_pursue(mob, owner)
else else
creatura.action_idle(mob) creatura.action_idle(mob, 1)
end end
end end
end end

View file

@ -98,6 +98,6 @@ creatura.register_mob("animalia:opossum", {
}) })
creatura.register_spawn_item("animalia:opossum", { creatura.register_spawn_item("animalia:opossum", {
col1 = "d0602d", col1 = "75665f",
col2 = "c9c9c9" col2 = "ccbfb8"
}) })