summaryrefslogtreecommitdiffstats
path: root/source/Protocol/Protocol17x.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/Protocol17x.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 '')
-rw-r--r--source/Protocol/Protocol17x.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp
index cf5c84599..746e1c127 100644
--- a/source/Protocol/Protocol17x.cpp
+++ b/source/Protocol/Protocol17x.cpp
@@ -610,14 +610,14 @@ void cProtocol172::SendExperience (void)
-void cProtocol172::SendExperienceOrb(const cEntity & a_Entity)
+void cProtocol172::SendExperienceOrb(const cExpOrb & a_ExpOrb)
{
cPacketizer Pkt(*this, 0x11);
- Pkt.WriteVarInt(a_Entity.GetUniqueID());
- Pkt.WriteInt((int) a_Entity.GetPosX());
- Pkt.WriteInt((int) a_Entity.GetPosY());
- Pkt.WriteInt((int) a_Entity.GetPosZ());
- Pkt.WriteShort(((cExpOrb &)a_Entity).GetReward());
+ Pkt.WriteVarInt(a_ExpOrb.GetUniqueID());
+ Pkt.WriteInt((int) a_ExpOrb.GetPosX());
+ Pkt.WriteInt((int) a_ExpOrb.GetPosY());
+ Pkt.WriteInt((int) a_ExpOrb.GetPosZ());
+ Pkt.WriteShort(a_ExpOrb.GetReward());
}