summaryrefslogtreecommitdiffstats
path: root/source/Protocol
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-07 21:58:47 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-07 21:58:47 +0100
commit21d835b594bd9d5ff20699b4195fe49b026c154b (patch)
tree13155e4e2614bd06a26d0b2023094f5418a1f8be /source/Protocol
parentPossible fix for 1.7 pickup spawning (diff)
downloadcuberite-21d835b594bd9d5ff20699b4195fe49b026c154b.tar
cuberite-21d835b594bd9d5ff20699b4195fe49b026c154b.tar.gz
cuberite-21d835b594bd9d5ff20699b4195fe49b026c154b.tar.bz2
cuberite-21d835b594bd9d5ff20699b4195fe49b026c154b.tar.lz
cuberite-21d835b594bd9d5ff20699b4195fe49b026c154b.tar.xz
cuberite-21d835b594bd9d5ff20699b4195fe49b026c154b.tar.zst
cuberite-21d835b594bd9d5ff20699b4195fe49b026c154b.zip
Diffstat (limited to 'source/Protocol')
-rw-r--r--source/Protocol/Protocol17x.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp
index 306b86987..daea79578 100644
--- a/source/Protocol/Protocol17x.cpp
+++ b/source/Protocol/Protocol17x.cpp
@@ -447,7 +447,7 @@ void cProtocol172::SendPickupSpawn(const cPickup & a_Pickup)
{
{
cPacketizer Pkt(*this, 0x0e); // Spawn Object packet
- Pkt.WriteInt(a_Pickup.GetUniqueID());
+ Pkt.WriteVarInt(a_Pickup.GetUniqueID());
Pkt.WriteByte(2); // Type = Pickup
Pkt.WriteFPInt(a_Pickup.GetPosX());
Pkt.WriteFPInt(a_Pickup.GetPosY());
@@ -616,7 +616,7 @@ void cProtocol172::SendSoundParticleEffect(int a_EffectID, int a_SrcX, int a_Src
void cProtocol172::SendSpawnFallingBlock(const cFallingBlock & a_FallingBlock)
{
cPacketizer Pkt(*this, 0x0e); // Spawn Object packet
- Pkt.WriteInt(a_FallingBlock.GetUniqueID());
+ Pkt.WriteVarInt(a_FallingBlock.GetUniqueID());
Pkt.WriteByte(70); // Falling block
Pkt.WriteFPInt(a_FallingBlock.GetPosX());
Pkt.WriteFPInt(a_FallingBlock.GetPosY());
@@ -681,7 +681,7 @@ void cProtocol172::SendSpawnObject(const cEntity & a_Entity, char a_ObjectType,
void cProtocol172::SendSpawnVehicle(const cEntity & a_Vehicle, char a_VehicleType, char a_VehicleSubType)
{
cPacketizer Pkt(*this, 0xe); // Spawn Object packet
- Pkt.WriteInt(a_Vehicle.GetUniqueID());
+ Pkt.WriteVarInt(a_Vehicle.GetUniqueID());
Pkt.WriteByte(a_VehicleType);
Pkt.WriteFPInt(a_Vehicle.GetPosX());
Pkt.WriteFPInt(a_Vehicle.GetPosY());