MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

[BUG] Updating a scoardbard crasches the Client #2718

Open asdanjer opened 8 months ago

asdanjer commented 8 months ago

Prerequisites

Minecraft Version

1.20.4

Console Client Version

20240320-260

Expected Behavior

Notthing happens

Actual Behavior

The client crashes when anyone updates any scoreboard using the command /scoreboard players add/remove player-name scoreboard-name number

Unhandled exception. System.IO.InvalidDataException: Failed to process incoming packet of type SystemChat. (PacketID: 105, Protocol: 765, LoginPhase: False, InnerException: System.InvalidCastException). ---> System.InvalidCastException: Specified cast is not valid. at MinecraftClient.Protocol.Message.ChatParser.NbtToString(Dictionary2 nbt) at MinecraftClient.Protocol.Message.ChatParser.NbtToString(Dictionary2 nbt) at MinecraftClient.Protocol.Message.ChatParser.NbtToString(Dictionary2 nbt) at MinecraftClient.Protocol.Message.ChatParser.ParseText(Dictionary2 nbt) at MinecraftClient.Protocol.Handlers.DataTypes.ReadNextChat(Queue1 cache) at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePlayPackets(Int32 packetId, Queue1 packetData) at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePacket(Int32 packetId, Queue1 packetData) --- End of inner exception stack trace --- at MinecraftClient.Protocol.Handlers.Protocol18Handler.HandlePacket(Int32 packetId, Queue1 packetData) at MinecraftClient.Protocol.Handlers.Protocol18Handler.Updater(Object o) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

Steps to Reproduce the bug

  1. Connect to a server
  2. exeute the comand on the same or anouther account
  3. MCC Crasches

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

No response

Device

Desktop

Operating System

Windows

Server Address (If applicable)

No response