diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-14 12:50:08 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-14 12:50:08 +0100 |
commit | 483ef89503605839c05047bebcf3c435262905c9 (patch) | |
tree | 7727ee8a1acc05de02a005e4f0a4d9dff7533d23 /src/Entities/ExpOrb.cpp | |
parent | Using "a_ClosestPlayer != NULL" in cExpOrb. (diff) | |
download | cuberite-483ef89503605839c05047bebcf3c435262905c9.tar cuberite-483ef89503605839c05047bebcf3c435262905c9.tar.gz cuberite-483ef89503605839c05047bebcf3c435262905c9.tar.bz2 cuberite-483ef89503605839c05047bebcf3c435262905c9.tar.lz cuberite-483ef89503605839c05047bebcf3c435262905c9.tar.xz cuberite-483ef89503605839c05047bebcf3c435262905c9.tar.zst cuberite-483ef89503605839c05047bebcf3c435262905c9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ExpOrb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/ExpOrb.cpp b/src/Entities/ExpOrb.cpp index 27d34f6ed..248fb7278 100644 --- a/src/Entities/ExpOrb.cpp +++ b/src/Entities/ExpOrb.cpp @@ -49,8 +49,8 @@ void cExpOrb::Tick(float a_Dt, cChunk & a_Chunk) double Distance(a_Distance.Length()); if (Distance < 0.1f) { + LOGD("Player %s picked up an ExpOrb. His reward is %i", a_ClosestPlayer->GetName().c_str(), m_Reward); a_ClosestPlayer->DeltaExperience(m_Reward); - a_ClosestPlayer->SendExperience(); Destroy(true); } a_Distance.Normalize(); |