diff options
author | Persson-dev <sim16.prib@gmail.com> | 2021-12-31 13:45:07 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2021-12-31 15:51:51 +0100 |
commit | ad216a00abba43c797de012eed01c0407f96f65d (patch) | |
tree | 7a191e5deb601d38495dc7c6f079e7279b38b895 | |
parent | Added glass to FullyOccupiesVoxel (diff) | |
download | cuberite-ad216a00abba43c797de012eed01c0407f96f65d.tar cuberite-ad216a00abba43c797de012eed01c0407f96f65d.tar.gz cuberite-ad216a00abba43c797de012eed01c0407f96f65d.tar.bz2 cuberite-ad216a00abba43c797de012eed01c0407f96f65d.tar.lz cuberite-ad216a00abba43c797de012eed01c0407f96f65d.tar.xz cuberite-ad216a00abba43c797de012eed01c0407f96f65d.tar.zst cuberite-ad216a00abba43c797de012eed01c0407f96f65d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol_1_13.cpp | 12 | ||||
-rw-r--r-- | src/Protocol/Protocol_1_13.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/Protocol/Protocol_1_13.cpp b/src/Protocol/Protocol_1_13.cpp index 80a1e9df1..bee1a49bb 100644 --- a/src/Protocol/Protocol_1_13.cpp +++ b/src/Protocol/Protocol_1_13.cpp @@ -638,6 +638,7 @@ bool cProtocol_1_13::HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketTyp case 0x19: HandlePacketEntityAction(a_ByteBuffer); return true; case 0x1a: HandlePacketSteerVehicle(a_ByteBuffer); return true; case 0x1b: HandlePacketCraftingBookData(a_ByteBuffer); return true; + case 0x1c: HandlePacketNameItem(a_ByteBuffer); return true; case 0x1d: break; // Resource pack status - not yet implemented case 0x1e: HandlePacketAdvancementTab(a_ByteBuffer); return true; case 0x20: HandlePacketSetBeaconEffect(a_ByteBuffer); return true; @@ -657,6 +658,17 @@ bool cProtocol_1_13::HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketTyp +void cProtocol_1_13::HandlePacketNameItem(cByteBuffer & a_ByteBuffer) +{ + HANDLE_READ(a_ByteBuffer, ReadVarUTF8String, AString, NewItemName); + + LOGD("New item name : %s", NewItemName); +} + + + + + void cProtocol_1_13::HandlePacketPluginMessage(cByteBuffer & a_ByteBuffer) { HANDLE_READ(a_ByteBuffer, ReadVarUTF8String, AString, NamespacedChannel); diff --git a/src/Protocol/Protocol_1_13.h b/src/Protocol/Protocol_1_13.h index ca2b49f4c..88d21c1db 100644 --- a/src/Protocol/Protocol_1_13.h +++ b/src/Protocol/Protocol_1_13.h @@ -57,6 +57,7 @@ protected: virtual Version GetProtocolVersion() const override; virtual bool HandlePacket(cByteBuffer & a_ByteBuffer, UInt32 a_PacketType) override; + virtual void HandlePacketNameItem(cByteBuffer & a_ByteBuffer); virtual void HandlePacketPluginMessage(cByteBuffer & a_ByteBuffer) override; virtual void HandlePacketSetBeaconEffect(cByteBuffer & a_ByteBuffer); virtual void HandleVanillaPluginMessage(cByteBuffer & a_ByteBuffer, std::string_view a_Channel) override; |