From 9bafed85ea5c6d41d5438f02be39b4ef54f54937 Mon Sep 17 00:00:00 2001 From: ElCeejo Date: Thu, 4 Jan 2024 21:25:51 -0800 Subject: [PATCH] Fixed crash --- api/mob_ai.lua | 6 +++--- mobs/opossum.lua | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/mob_ai.lua b/api/mob_ai.lua index 8200574..8e874ba 100644 --- a/api/mob_ai.lua +++ b/api/mob_ai.lua @@ -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 diff --git a/mobs/opossum.lua b/mobs/opossum.lua index 4383a50..c2a28f8 100644 --- a/mobs/opossum.lua +++ b/mobs/opossum.lua @@ -98,6 +98,6 @@ creatura.register_mob("animalia:opossum", { }) creatura.register_spawn_item("animalia:opossum", { - col1 = "d0602d", - col2 = "c9c9c9" + col1 = "75665f", + col2 = "ccbfb8" })