summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-11-26 15:37:15 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-11-26 15:37:15 +0100
commit686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5 (patch)
treef31bbc5567d815b4c000da682c71327a6f51a1ab /source/World.cpp
parentMerge pull request #368 from mc-server/ExpOrbs (diff)
downloadcuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.gz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.bz2
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.lz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.xz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.zst
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 432ab32e9..de64b1c20 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -1562,10 +1562,11 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double
-void cWorld::SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward)
+int cWorld::SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward)
{
cExpOrb * ExpOrb = new cExpOrb(a_X, a_Y, a_Z, a_Reward);
ExpOrb->Initialize(this);
+ return ExpOrb->GetUniqueID();
}