diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-10 23:20:25 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-10 23:20:25 +0100 |
commit | f713780db31e22345a1faf048ab948b1b4e03200 (patch) | |
tree | f05cc95ba5e3eef14c490700456415c6b15bdd7f /source/Protocol/Protocol17x.cpp | |
parent | Bundled fixes [SEE DESC] (diff) | |
download | cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.gz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.bz2 cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.lz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.xz cuberite-f713780db31e22345a1faf048ab948b1b4e03200.tar.zst cuberite-f713780db31e22345a1faf048ab948b1b4e03200.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol17x.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp index a962d238b..d580be23b 100644 --- a/source/Protocol/Protocol17x.cpp +++ b/source/Protocol/Protocol17x.cpp @@ -491,7 +491,7 @@ void cProtocol172::SendPlayerAbilities(void) void cProtocol172::SendPlayerAnimation(const cPlayer & a_Player, char a_Animation) { cPacketizer Pkt(*this, 0x0b); // Animation packet - Pkt.WriteInt(a_Player.GetUniqueID()); + Pkt.WriteVarInt(a_Player.GetUniqueID()); Pkt.WriteChar(a_Animation); } @@ -616,8 +616,8 @@ void cProtocol172::SendSoundParticleEffect(int a_EffectID, int a_SrcX, int a_Src { cPacketizer Pkt(*this, 0x28); // Effect packet Pkt.WriteInt(a_EffectID); - Pkt.WriteByte(a_SrcX); - Pkt.WriteInt(a_SrcY); + Pkt.WriteInt(a_SrcX); + Pkt.WriteByte(a_SrcY); Pkt.WriteInt(a_SrcZ); Pkt.WriteInt(a_Data); Pkt.WriteBool(false); |