From 325dc1609ac2dc3b6d07dd4a2344380f9667c199 Mon Sep 17 00:00:00 2001 From: ElCeejo Date: Wed, 31 Aug 2022 15:02:00 -0700 Subject: [PATCH] Fix bug --- mobs/chicken.lua | 2 +- mobs/turkey.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobs/chicken.lua b/mobs/chicken.lua index bd0af38..22a3a45 100644 --- a/mobs/chicken.lua +++ b/mobs/chicken.lua @@ -175,7 +175,7 @@ creatura.register_mob("animalia:chicken", { self:set_gravity(-4.9) self:animate("fall") end - if (self.growth_scale or 1) < 0.8 + if (self.growth_scale or 1) > 0.8 and self.gender == "female" and self:timer(60) then animalia.random_drop_item(self, "animalia:chicken_egg", 10) diff --git a/mobs/turkey.lua b/mobs/turkey.lua index 79df55e..b1f4e04 100644 --- a/mobs/turkey.lua +++ b/mobs/turkey.lua @@ -163,7 +163,7 @@ creatura.register_mob("animalia:turkey", { self:set_gravity(-4.9) self:animate("fall") end - if (self.growth_scale or 1) < 0.8 + if (self.growth_scale or 1) > 0.8 and self.gender == "female" and self:timer(60) then animalia.random_drop_item(self, "animalia:turkey_egg", 10)