summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-11-07 21:07:27 +0100
committerMattes D <github@xoft.cz>2013-11-07 21:07:27 +0100
commit6179108756f53a4f61f377be1d3d497eec6d77fb (patch)
tree286a162a276e8812159dbfb9d8c65c6a8a876df4 /source
parentProtoProxy: Fixed SpawnMob packet. (diff)
parentPossible fix for 1.7 pickup spawning (diff)
downloadcuberite-6179108756f53a4f61f377be1d3d497eec6d77fb.tar
cuberite-6179108756f53a4f61f377be1d3d497eec6d77fb.tar.gz
cuberite-6179108756f53a4f61f377be1d3d497eec6d77fb.tar.bz2
cuberite-6179108756f53a4f61f377be1d3d497eec6d77fb.tar.lz
cuberite-6179108756f53a4f61f377be1d3d497eec6d77fb.tar.xz
cuberite-6179108756f53a4f61f377be1d3d497eec6d77fb.tar.zst
cuberite-6179108756f53a4f61f377be1d3d497eec6d77fb.zip
Diffstat (limited to '')
-rw-r--r--source/Protocol/Protocol17x.cpp2
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());