diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-28 03:45:20 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-28 03:45:20 +0100 |
commit | 0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec (patch) | |
tree | 4d421bba734bb56e7021b170f94f11a3daa54158 /source/Protocol/Protocol125.cpp | |
parent | Fixed OnBlockPlace hook (diff) | |
download | cuberite-0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec.tar cuberite-0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec.tar.gz cuberite-0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec.tar.bz2 cuberite-0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec.tar.lz cuberite-0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec.tar.xz cuberite-0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec.tar.zst cuberite-0cc3ab7c1ee21ea35ebe3ff17f641477dd34f9ec.zip |
Diffstat (limited to 'source/Protocol/Protocol125.cpp')
-rw-r--r-- | source/Protocol/Protocol125.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp index cb1e46193..0b5acc771 100644 --- a/source/Protocol/Protocol125.cpp +++ b/source/Protocol/Protocol125.cpp @@ -477,9 +477,9 @@ void cProtocol125::SendPickupSpawn(const cPickup & a_Pickup) cCSLock Lock(m_CSPacket);
WriteByte (PACKET_PICKUP_SPAWN);
WriteInt (a_Pickup.GetUniqueID());
- WriteShort (a_Pickup.GetItem()->m_ItemType);
- WriteByte (a_Pickup.GetItem()->m_ItemCount);
- WriteShort (a_Pickup.GetItem()->m_ItemDamage);
+ WriteShort (a_Pickup.GetItem().m_ItemType);
+ WriteByte (a_Pickup.GetItem().m_ItemCount);
+ WriteShort (a_Pickup.GetItem().m_ItemDamage);
WriteVectorI((Vector3i)(a_Pickup.GetPosition() * 32));
WriteByte ((char)(a_Pickup.GetSpeed().x * 8));
WriteByte ((char)(a_Pickup.GetSpeed().y * 8));
|