1
0

implement breeding

This commit is contained in:
Gargaj
2015-11-29 19:13:31 +01:00
parent 93afb6398d
commit 4ae3b64b07
11 changed files with 209 additions and 19 deletions

View File

@@ -36,7 +36,10 @@ void cCow::GetDrops(cItems & a_Drops, cEntity * a_Killer)
void cCow::OnRightClicked(cPlayer & a_Player)
{
if ((a_Player.GetEquippedItem().m_ItemType == E_ITEM_BUCKET))
super::OnRightClicked(a_Player);
short HeldItem = a_Player.GetEquippedItem().m_ItemType;
if (HeldItem == E_ITEM_BUCKET)
{
if (!a_Player.IsGameModeCreative())
{
@@ -45,4 +48,3 @@ void cCow::OnRightClicked(cPlayer & a_Player)
}
}
}