summaryrefslogtreecommitdiffstats
path: root/src/Mobs/PassiveMonster.cpp
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2014-01-29 20:02:41 +0100
committertonibm19 <tonibm19@gmail.com>2014-01-29 20:02:41 +0100
commite9c1d1ea9c79d9a57d48b625d9a31604e927609c (patch)
treeb7651ce653cde05c25de99532dfbd5eab3ee0a2a /src/Mobs/PassiveMonster.cpp
parentRewritten code. (diff)
downloadcuberite-e9c1d1ea9c79d9a57d48b625d9a31604e927609c.tar
cuberite-e9c1d1ea9c79d9a57d48b625d9a31604e927609c.tar.gz
cuberite-e9c1d1ea9c79d9a57d48b625d9a31604e927609c.tar.bz2
cuberite-e9c1d1ea9c79d9a57d48b625d9a31604e927609c.tar.lz
cuberite-e9c1d1ea9c79d9a57d48b625d9a31604e927609c.tar.xz
cuberite-e9c1d1ea9c79d9a57d48b625d9a31604e927609c.tar.zst
cuberite-e9c1d1ea9c79d9a57d48b625d9a31604e927609c.zip
Diffstat (limited to 'src/Mobs/PassiveMonster.cpp')
-rw-r--r--src/Mobs/PassiveMonster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/PassiveMonster.cpp b/src/Mobs/PassiveMonster.cpp
index 903761a95..904cd63cc 100644
--- a/src/Mobs/PassiveMonster.cpp
+++ b/src/Mobs/PassiveMonster.cpp
@@ -47,7 +47,7 @@ void cPassiveMonster::Tick(float a_Dt, cChunk & 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 == FollowedItem.m_ItemType)
+ if (a_Closest_Player->GetEquippedItem().IsEqual(FollowedItem))
{
Vector3d PlayerPos = a_Closest_Player->GetPosition();
MoveToPosition(PlayerPos);