summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-13 01:21:43 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-13 01:21:43 +0200
commit69afc4dbba9ea22ed53756d0ec2b8ff138ddf781 (patch)
tree237871b3c615fa6e1f96b89133d3d6df4e2360dd /src/Protocol/Protocol17x.cpp
parentMerge branch 'master' into 1.8-Protocol (diff)
parentFixed friction being applied whilst airborne (diff)
downloadcuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar
cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.gz
cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.bz2
cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.lz
cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.xz
cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.tar.zst
cuberite-69afc4dbba9ea22ed53756d0ec2b8ff138ddf781.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 b3c78a8ba..eaf226841 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1040,9 +1040,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());
}