diff options
author | madmaxoft <github@xoft.cz> | 2013-11-07 17:11:36 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-07 17:11:36 +0100 |
commit | 034a283a28cb08c654ef6bca1310ebb7c2fc5636 (patch) | |
tree | 63565e758539a98c68b8cb4da0a2c3c7a9408eb2 /source/Protocol | |
parent | Protocol 1.7: Added the remaining server-bound packets. (diff) | |
download | cuberite-034a283a28cb08c654ef6bca1310ebb7c2fc5636.tar cuberite-034a283a28cb08c654ef6bca1310ebb7c2fc5636.tar.gz cuberite-034a283a28cb08c654ef6bca1310ebb7c2fc5636.tar.bz2 cuberite-034a283a28cb08c654ef6bca1310ebb7c2fc5636.tar.lz cuberite-034a283a28cb08c654ef6bca1310ebb7c2fc5636.tar.xz cuberite-034a283a28cb08c654ef6bca1310ebb7c2fc5636.tar.zst cuberite-034a283a28cb08c654ef6bca1310ebb7c2fc5636.zip |
Diffstat (limited to '')
-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 99cc7b52c..ef8029433 100644 --- a/source/Protocol/Protocol17x.cpp +++ b/source/Protocol/Protocol17x.cpp @@ -636,7 +636,7 @@ void cProtocol172::SendSpawnFallingBlock(const cFallingBlock & a_FallingBlock) void cProtocol172::SendSpawnMob(const cMonster & a_Mob) { cPacketizer Pkt(*this, 0x0f); // Spawn Mob packet - Pkt.WriteInt(a_Mob.GetUniqueID()); + Pkt.WriteVarInt(a_Mob.GetUniqueID()); Pkt.WriteByte((Byte)a_Mob.GetMobType()); Pkt.WriteFPInt(a_Mob.GetPosX()); Pkt.WriteFPInt(a_Mob.GetPosY()); |