Fixed some small passive mob issues (#4057)
* Chickens can be bred with seeds, beetroot seeds, melon seeds, or pumpkin seeds Ref: https://minecraft.gamepedia.com/Chicken#Baby_chicken * Baby passive mobs don't drop items * Fixed the size of some mobs
This commit is contained in:
committed by
Alexander Harkness
parent
744cdb726d
commit
e585595ae6
@@ -35,6 +35,11 @@ cSheep::cSheep(int a_Color) :
|
||||
|
||||
void cSheep::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
||||
{
|
||||
if (IsBaby())
|
||||
{
|
||||
return; // Babies don't drop items
|
||||
}
|
||||
|
||||
if (!m_IsSheared)
|
||||
{
|
||||
a_Drops.push_back(cItem(E_BLOCK_WOOL, 1, static_cast<short>(m_WoolColor)));
|
||||
|
||||
Reference in New Issue
Block a user