summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-12 16:41:23 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-12 16:41:23 +0200
commitd07ef85ee310486c07ce9905ef66c1cb31549617 (patch)
treec81fd6ff51bf426240de4d07dec1c66463fd718a /src/Protocol/Protocol17x.cpp
parentDisabled mobspawner itemdrop. (diff)
downloadcuberite-d07ef85ee310486c07ce9905ef66c1cb31549617.tar
cuberite-d07ef85ee310486c07ce9905ef66c1cb31549617.tar.gz
cuberite-d07ef85ee310486c07ce9905ef66c1cb31549617.tar.bz2
cuberite-d07ef85ee310486c07ce9905ef66c1cb31549617.tar.lz
cuberite-d07ef85ee310486c07ce9905ef66c1cb31549617.tar.xz
cuberite-d07ef85ee310486c07ce9905ef66c1cb31549617.tar.zst
cuberite-d07ef85ee310486c07ce9905ef66c1cb31549617.zip
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r--src/Protocol/Protocol17x.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index f24ef320d..f07f6a928 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1033,9 +1033,9 @@ void cProtocol172::SendExperienceOrb(const cExpOrb & a_ExpOrb)
cPacketizer Pkt(*this, 0x11);
Pkt.WriteVarInt(a_ExpOrb.GetUniqueID());
- Pkt.WriteInt((int) a_ExpOrb.GetPosX());
- Pkt.WriteInt((int) a_ExpOrb.GetPosY());
- Pkt.WriteInt((int) a_ExpOrb.GetPosZ());
+ Pkt.WriteFPInt(a_ExpOrb.GetPosX());
+ Pkt.WriteFPInt(a_ExpOrb.GetPosY());
+ Pkt.WriteFPInt(a_ExpOrb.GetPosZ());
Pkt.WriteShort(a_ExpOrb.GetReward());
}