mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Merge pull request #2947 from milutinke/bug-fixes-2026-03
This commit is contained in:
commit
9f4abfdd39
1 changed files with 15 additions and 6 deletions
|
|
@ -2024,8 +2024,8 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
if (protocolVersion >= MC_1_19_3_Version)
|
||||
{
|
||||
var actionBitset = dataTypes.ReadNextByte(packetData);
|
||||
var numberOfActions = dataTypes.ReadNextVarInt(packetData);
|
||||
for (var i = 0; i < numberOfActions; i++)
|
||||
var entryCount = dataTypes.ReadNextVarInt(packetData);
|
||||
for (var i = 0; i < entryCount; i++)
|
||||
{
|
||||
var playerUuid = dataTypes.ReadNextUUID(packetData);
|
||||
|
||||
|
|
@ -2107,10 +2107,19 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
}
|
||||
|
||||
// Actions bit 5: update display name
|
||||
if ((actionBitset & 1 << 5) <= 0) continue;
|
||||
player.DisplayName = dataTypes.ReadNextBool(packetData)
|
||||
? dataTypes.ReadNextChat(packetData)
|
||||
: null;
|
||||
if ((actionBitset & 1 << 5) > 0)
|
||||
{
|
||||
player.DisplayName = dataTypes.ReadNextBool(packetData)
|
||||
? dataTypes.ReadNextChat(packetData)
|
||||
: null;
|
||||
}
|
||||
|
||||
// Consume all action-selected fields to keep entry boundaries aligned.
|
||||
if (protocolVersion >= MC_1_21_2_Version && (actionBitset & 1 << 6) > 0) // Actions bit 6: update list order
|
||||
dataTypes.ReadNextVarInt(packetData);
|
||||
|
||||
if (protocolVersion >= MC_1_21_4_Version && (actionBitset & 1 << 7) > 0) // Actions bit 7: update hat
|
||||
dataTypes.ReadNextBool(packetData);
|
||||
}
|
||||
}
|
||||
else if (protocolVersion >= MC_1_8_Version)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue