summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_13.cpp
diff options
context:
space:
mode:
authorPersson-dev <sim16.prib@gmail.com>2021-12-31 13:45:07 +0100
committerAlexander Harkness <me@bearbin.net>2021-12-31 15:51:51 +0100
commitad216a00abba43c797de012eed01c0407f96f65d (patch)
tree7a191e5deb601d38495dc7c6f079e7279b38b895 /src/Protocol/Protocol_1_13.cpp
parentAdded glass to FullyOccupiesVoxel (diff)
downloadcuberite-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 'src/Protocol/Protocol_1_13.cpp')
-rw-r--r--src/Protocol/Protocol_1_13.cpp12
1 files changed, 12 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);