summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-12 20:43:05 +0200
committerMattes D <github@xoft.cz>2014-09-12 20:43:05 +0200
commitdb13405da236b5ba42d36135bf905a30341a425c (patch)
tree42e2cad05899d63f2471578b20313583ca570a70 /src/Protocol/Protocol17x.cpp
parentFixed iron ore drop. (diff)
parentOnly drop flint or gravel, not both. (diff)
downloadcuberite-db13405da236b5ba42d36135bf905a30341a425c.tar
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.gz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.bz2
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.lz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.xz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.zst
cuberite-db13405da236b5ba42d36135bf905a30341a425c.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());
}