From f931590bf048cd43bb85e847f1874c768ccb653c Mon Sep 17 00:00:00 2001 From: Mat Date: Thu, 16 Apr 2020 00:15:01 +0300 Subject: Prevent crash when breeding --- src/Mobs/Sheep.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Mobs/Sheep.cpp b/src/Mobs/Sheep.cpp index 34019cfc6..02ca21fbe 100644 --- a/src/Mobs/Sheep.cpp +++ b/src/Mobs/Sheep.cpp @@ -167,12 +167,10 @@ void cSheep::InheritFromParents(cPassiveMonster * a_Parent1, cPassiveMonster * a ) { SetFurColor(ColorInheritance[i].Child); - m_World->BroadcastEntityMetadata(*this); return; } } SetFurColor(GetRandomProvider().RandBool() ? Parent1->GetFurColor() : Parent2->GetFurColor()); - m_World->BroadcastEntityMetadata(*this); } -- cgit v1.2.3