From eb5aa9fa8fdc9aebef06f613c2dcb57cc04cd61e Mon Sep 17 00:00:00 2001 From: itsRevela Date: Fri, 17 Apr 2026 07:06:39 -0500 Subject: [PATCH] fix: chat color codes not rendering in singleplayer PlayerConnection::handleChat called FormatChatMessage with applyStyling=false before broadcasting, which stripped all color codes from the message. The client then had nothing left to format. Send the raw message and let the client handle formatting on receive. --- Minecraft.Client/PlayerConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.Client/PlayerConnection.cpp b/Minecraft.Client/PlayerConnection.cpp index 493cfd1c..bbe9e97d 100644 --- a/Minecraft.Client/PlayerConnection.cpp +++ b/Minecraft.Client/PlayerConnection.cpp @@ -969,7 +969,7 @@ void PlayerConnection::handleChat(shared_ptr packet) } #else wstring formatted = L"<" + player->name + L"> " + message; - server->getPlayers()->broadcastAll(shared_ptr(new ChatPacket(app.FormatChatMessage(formatted, false)))); + server->getPlayers()->broadcastAll(shared_ptr(new ChatPacket(formatted))); #endif chatSpamTickCount += SharedConstants::TICKS_PER_SECOND; if (chatSpamTickCount > SharedConstants::TICKS_PER_SECOND * 10)