diff options
Diffstat (limited to '')
-rw-r--r-- | source/Protocol132.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Protocol132.cpp b/source/Protocol132.cpp index 32fd4b63c..2b8d4c19c 100644 --- a/source/Protocol132.cpp +++ b/source/Protocol132.cpp @@ -53,6 +53,7 @@ enum {
PACKET_KEEP_ALIVE = 0x00,
PACKET_LOGIN = 0x01,
+ PACKET_ENTITY_EQUIPMENT = 0x05,
PACKET_COMPASS = 0x06,
PACKET_PLAYER_SPAWN = 0x14,
PACKET_SPAWN_MOB = 0x18,
@@ -256,6 +257,20 @@ void cProtocol132::SendDestroyEntity(const cEntity & a_Entity) +void cProtocol132::SendEntityEquipment(const cEntity & a_Entity, short a_SlotNum, const cItem & a_Item)
+{
+ cCSLock Lock(m_CSPacket);
+ WriteByte (PACKET_ENTITY_EQUIPMENT);
+ WriteInt (a_Entity.GetUniqueID());
+ WriteShort(a_SlotNum);
+ WriteItem (a_Item);
+ Flush();
+}
+
+
+
+
+
void cProtocol132::SendKeepAlive(int a_PingID)
{
cCSLock Lock(m_CSPacket);
|