summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-11-25 21:43:43 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-11-25 21:43:43 +0100
commit18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1 (patch)
treeeb095118736e4c61c93e309dbc560cae56aad134 /source/Protocol/Protocol125.cpp
parentAdded cWorld::SpawnExperienceOrb function. (diff)
downloadcuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar
cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.gz
cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.bz2
cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.lz
cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.xz
cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.tar.zst
cuberite-18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1.zip
Diffstat (limited to 'source/Protocol/Protocol125.cpp')
-rw-r--r--source/Protocol/Protocol125.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp
index 3b753479d..b1dd17ea1 100644
--- a/source/Protocol/Protocol125.cpp
+++ b/source/Protocol/Protocol125.cpp
@@ -707,15 +707,15 @@ void cProtocol125::SendExperience(void)
-void cProtocol125::SendExperienceOrb(const cEntity & a_Entity)
+void cProtocol125::SendExperienceOrb(const cExpOrb & a_ExpOrb)
{
cCSLock Lock(m_CSPacket);
WriteByte(PACKET_SPAWN_EXPERIENCE_ORB);
- WriteInt(a_Entity.GetUniqueID());
- WriteInt((int) a_Entity.GetPosX());
- WriteInt((int) a_Entity.GetPosY());
- WriteInt((int) a_Entity.GetPosZ());
- WriteShort(((cExpOrb &)a_Entity).GetReward());
+ WriteInt(a_ExpOrb.GetUniqueID());
+ WriteInt((int) a_ExpOrb.GetPosX());
+ WriteInt((int) a_ExpOrb.GetPosY());
+ WriteInt((int) a_ExpOrb.GetPosZ());
+ WriteShort(a_ExpOrb.GetReward());
Flush();
}