summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-10 14:19:02 +0100
committermadmaxoft <github@xoft.cz>2013-11-10 14:19:02 +0100
commitfb3a175b28d3ef819876cf86e72a991f33ad5fcc (patch)
tree7ae30fcebbcd37260f8e026394a7a9b7bf2fde08
parentFixed Player animation packet. (diff)
downloadcuberite-fb3a175b28d3ef819876cf86e72a991f33ad5fcc.tar
cuberite-fb3a175b28d3ef819876cf86e72a991f33ad5fcc.tar.gz
cuberite-fb3a175b28d3ef819876cf86e72a991f33ad5fcc.tar.bz2
cuberite-fb3a175b28d3ef819876cf86e72a991f33ad5fcc.tar.lz
cuberite-fb3a175b28d3ef819876cf86e72a991f33ad5fcc.tar.xz
cuberite-fb3a175b28d3ef819876cf86e72a991f33ad5fcc.tar.zst
cuberite-fb3a175b28d3ef819876cf86e72a991f33ad5fcc.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol17x.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp
index 1e19385c6..ebf8f6c33 100644
--- a/source/Protocol/Protocol17x.cpp
+++ b/source/Protocol/Protocol17x.cpp
@@ -615,11 +615,9 @@ void cProtocol172::SendSoundParticleEffect(int a_EffectID, int a_SrcX, int a_Src
{
cPacketizer Pkt(*this, 0x28); // Effect packet
Pkt.WriteInt(a_EffectID);
- Pkt.WriteInt(a_SrcX);
- // TODO: Check if this is really an int
- // wiki.vg says it's a byte, but that wouldn't cover the entire range needed (Y location * 8 = 0..2048)
- Pkt.WriteInt(a_SrcY);
- Pkt.WriteInt(a_SrcZ);
+ Pkt.WriteInt(a_SrcX / 8);
+ Pkt.WriteByte(a_SrcY / 8);
+ Pkt.WriteInt(a_SrcZ / 8);
Pkt.WriteInt(a_Data);
Pkt.WriteBool(false);
}