From 6c70685d529db088c98632b88f3dcc954fc99704 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:11:43 +0000 Subject: [PATCH] Changes before error encountered Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com> Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/e56a9086-4921-4504-ab06-ebb912cf52ce --- MinecraftClient/Protocol/Message/ChatParser.cs | 4 +++- tools/mc-rcon.sh | 0 2 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 tools/mc-rcon.sh diff --git a/MinecraftClient/Protocol/Message/ChatParser.cs b/MinecraftClient/Protocol/Message/ChatParser.cs index bc12da5b..e0954ee2 100644 --- a/MinecraftClient/Protocol/Message/ChatParser.cs +++ b/MinecraftClient/Protocol/Message/ChatParser.cs @@ -501,7 +501,9 @@ namespace MinecraftClient.Protocol.Message if (obj.ContainsKey("text")) { - return formatting + JSONData2String(obj["text"], formatting, links) + extra_result; + // Pass "" to the leaf text node: formatting is already prepended here, + // and the default: case would add it a second time if we passed formatting. + return formatting + JSONData2String(obj["text"], "", links) + extra_result; } else if (obj.ContainsKey("translate")) { diff --git a/tools/mc-rcon.sh b/tools/mc-rcon.sh old mode 100644 new mode 100755