diff --git a/protocolCraft/include/protocolCraft/Types/Chat/Chat.hpp b/protocolCraft/include/protocolCraft/Types/Chat/Chat.hpp index b09b069f..1a16b580 100644 --- a/protocolCraft/include/protocolCraft/Types/Chat/Chat.hpp +++ b/protocolCraft/include/protocolCraft/Types/Chat/Chat.hpp @@ -61,12 +61,14 @@ namespace ProtocolCraft } -#if PROTOCOL_VERSION < 765 /* < 1.20.3 */ virtual void WriteImpl(WriteContainer& container) const override { +#if PROTOCOL_VERSION < 765 /* < 1.20.3 */ WriteData(raw_text, container); - } +#else + NBT::Tag::WriteUnnamedImpl(container); #endif + } #if PROTOCOL_VERSION < 765 /* < 1.20.3 */ virtual Json::Value SerializeImpl() const override