1
0

Merge pull request #878 from mc-server/mobexp

@axisd Changes
This commit is contained in:
Mattes D 2014-04-10 17:23:32 +02:00
commit b45e8a8bd9

View File

@ -526,7 +526,10 @@ void cMonster::KilledBy(cEntity * a_Killer)
break;
}
}
m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), Reward);
if (a_Killer != NULL)
{
m_World->SpawnExperienceOrb(GetPosX(), GetPosY(), GetPosZ(), Reward);
}
m_DestroyTimer = 0;
}