1
0

If a player is called "Notch" he drops an apple. http://minecraft.gamepedia.com/Notch

This commit is contained in:
STRWarrior 2014-02-15 19:51:05 +01:00
parent 34207a606a
commit 0040a88b9b

View File

@ -839,6 +839,12 @@ void cPlayer::KilledBy(cEntity * a_Killer)
cItems Pickups;
m_Inventory.CopyToItems(Pickups);
m_Inventory.Clear();
if (GetName() == "Notch")
{
Pickups.Add(cItem(E_ITEM_RED_APPLE));
}
m_World->SpawnItemPickups(Pickups, GetPosX(), GetPosY(), GetPosZ(), 10);
SaveToDisk(); // Save it, yeah the world is a tough place !