diff options
author | tonibm19 <tonibm19@gmail.com> | 2014-01-29 19:15:26 +0100 |
---|---|---|
committer | tonibm19 <tonibm19@gmail.com> | 2014-01-29 19:15:26 +0100 |
commit | 1c1832b6ce08de71e6a46187420d91eacb18d16e (patch) | |
tree | 19e8f8dc0cd0fb0dff42e041d6ebbda8f99caf9b /src/Mobs/Mooshroom.cpp | |
parent | Fixed sheep (diff) | |
download | cuberite-1c1832b6ce08de71e6a46187420d91eacb18d16e.tar cuberite-1c1832b6ce08de71e6a46187420d91eacb18d16e.tar.gz cuberite-1c1832b6ce08de71e6a46187420d91eacb18d16e.tar.bz2 cuberite-1c1832b6ce08de71e6a46187420d91eacb18d16e.tar.lz cuberite-1c1832b6ce08de71e6a46187420d91eacb18d16e.tar.xz cuberite-1c1832b6ce08de71e6a46187420d91eacb18d16e.tar.zst cuberite-1c1832b6ce08de71e6a46187420d91eacb18d16e.zip |
Diffstat (limited to 'src/Mobs/Mooshroom.cpp')
-rw-r--r-- | src/Mobs/Mooshroom.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/Mobs/Mooshroom.cpp b/src/Mobs/Mooshroom.cpp index 60721f0ee..00ba339a6 100644 --- a/src/Mobs/Mooshroom.cpp +++ b/src/Mobs/Mooshroom.cpp @@ -30,32 +30,4 @@ void cMooshroom::GetDrops(cItems & a_Drops, cEntity * a_Killer) } -void cMooshroom::Tick(float a_Dt, cChunk & a_Chunk) -{ - super::Tick(a_Dt, a_Chunk); - cPlayer * a_Closest_Player = m_World->FindClosestPlayer(GetPosition(), (float)m_SightDistance); - if (a_Closest_Player != NULL) - { - if (a_Closest_Player->GetEquippedItem().m_ItemType == E_ITEM_WHEAT) - { - if (!IsBegging()) - { - m_IsBegging = true; - m_World->BroadcastEntityMetadata(*this); - } - Vector3d PlayerPos = a_Closest_Player->GetPosition(); - PlayerPos.y++; - m_FinalDestination = PlayerPos; - } - else - { - if (IsBegging()) - { - m_IsBegging = false; - m_World->BroadcastEntityMetadata(*this); - } - } - } -} - |