diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-11-25 21:43:43 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-11-25 21:43:43 +0100 |
commit | 18b5ccbc0836dbfb4adcff76dbfbde340bcabbc1 (patch) | |
tree | eb095118736e4c61c93e309dbc560cae56aad134 /source/Protocol/Protocol17x.cpp | |
parent | Added cWorld::SpawnExperienceOrb function. (diff) | |
download | cuberite-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.cpp | 12 |
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()); } |