mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Added text parsing in the tab player list
This commit is contained in:
parent
16e3a69211
commit
32d5ad1108
1 changed files with 2 additions and 2 deletions
|
|
@ -2189,7 +2189,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
|
||||
string? displayName = null;
|
||||
if (dataTypes.ReadNextBool(packetData)) // Has display name
|
||||
displayName = dataTypes.ReadNextString(packetData); // Display name
|
||||
displayName = ChatParser.ParseText(dataTypes.ReadNextString(packetData)); // Display name
|
||||
|
||||
// 1.19 Additions
|
||||
long? keyExpiration = null;
|
||||
|
|
@ -2230,7 +2230,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
{
|
||||
var player = handler.GetPlayerInfo(uuid);
|
||||
if (player is not null)
|
||||
player.DisplayName = dataTypes.ReadNextString(packetData);
|
||||
player.DisplayName = ChatParser.ParseText(dataTypes.ReadNextString(packetData));
|
||||
else
|
||||
dataTypes.SkipNextString(packetData);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue