summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Mobs/Chicken.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Mobs/Chicken.cpp b/src/Mobs/Chicken.cpp
index c6042e420..5393a8a35 100644
--- a/src/Mobs/Chicken.cpp
+++ b/src/Mobs/Chicken.cpp
@@ -24,6 +24,11 @@ void cChicken::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
super::Tick(a_Dt, a_Chunk);
+ if (IsBaby())
+ {
+ return; // Babies don't lay eggs
+ }
+
if ((m_EggDropTimer == 6000) && (m_World->GetTickRandomNumber(1) == 0))
{
cItems Drops;