diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-07 19:49:48 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-11-07 19:49:48 +0100 |
commit | 4722a90a0b99f75e7f48a417fce786e22778f574 (patch) | |
tree | 286a162a276e8812159dbfb9d8c65c6a8a876df4 | |
parent | ProtoProxy: Fixed SpawnMob packet. (diff) | |
download | cuberite-4722a90a0b99f75e7f48a417fce786e22778f574.tar cuberite-4722a90a0b99f75e7f48a417fce786e22778f574.tar.gz cuberite-4722a90a0b99f75e7f48a417fce786e22778f574.tar.bz2 cuberite-4722a90a0b99f75e7f48a417fce786e22778f574.tar.lz cuberite-4722a90a0b99f75e7f48a417fce786e22778f574.tar.xz cuberite-4722a90a0b99f75e7f48a417fce786e22778f574.tar.zst cuberite-4722a90a0b99f75e7f48a417fce786e22778f574.zip |
-rw-r--r-- | source/Protocol/Protocol17x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp index ef8029433..306b86987 100644 --- a/source/Protocol/Protocol17x.cpp +++ b/source/Protocol/Protocol17x.cpp @@ -658,7 +658,7 @@ void cProtocol172::SendSpawnMob(const cMonster & a_Mob) void cProtocol172::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType, int a_ObjectData, Byte a_Yaw, Byte a_Pitch) { cPacketizer Pkt(*this, 0xe); // Spawn Object packet - Pkt.WriteInt(a_Entity.GetUniqueID()); + Pkt.WriteVarInt(a_Entity.GetUniqueID()); Pkt.WriteByte(a_ObjectType); Pkt.WriteFPInt(a_Entity.GetPosX()); Pkt.WriteFPInt(a_Entity.GetPosY()); |