diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-02-15 19:51:05 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-02-15 19:51:05 +0100 |
commit | 0040a88b9b40817c04e54259fcb61e31dc4f4213 (patch) | |
tree | ca71344f27aa90728c44cb49001ae24eb5c6782e /src/Entities | |
parent | Documented BroadcastParticleEffect (diff) | |
download | cuberite-0040a88b9b40817c04e54259fcb61e31dc4f4213.tar cuberite-0040a88b9b40817c04e54259fcb61e31dc4f4213.tar.gz cuberite-0040a88b9b40817c04e54259fcb61e31dc4f4213.tar.bz2 cuberite-0040a88b9b40817c04e54259fcb61e31dc4f4213.tar.lz cuberite-0040a88b9b40817c04e54259fcb61e31dc4f4213.tar.xz cuberite-0040a88b9b40817c04e54259fcb61e31dc4f4213.tar.zst cuberite-0040a88b9b40817c04e54259fcb61e31dc4f4213.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/Player.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 286d43cf6..cf5a8edfe 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -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 ! |