mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix for LoginSuccess packet
This commit is contained in:
parent
dfc310b3f2
commit
015d28ec94
1 changed files with 5 additions and 1 deletions
|
|
@ -1848,7 +1848,11 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
}
|
}
|
||||||
else if (packetID == 0x02) //Login successful
|
else if (packetID == 0x02) //Login successful
|
||||||
{
|
{
|
||||||
Guid uuidReceived = dataTypes.ReadNextUUID(packetData);
|
Guid uuidReceived;
|
||||||
|
if (protocolVersion >= Protocol18Handler.MC_1_16_Version)
|
||||||
|
uuidReceived = dataTypes.ReadNextUUID(packetData);
|
||||||
|
else
|
||||||
|
uuidReceived = Guid.Parse(dataTypes.ReadNextString(packetData));
|
||||||
string userName = dataTypes.ReadNextString(packetData);
|
string userName = dataTypes.ReadNextString(packetData);
|
||||||
Tuple<string, string, string>[]? playerProperty = null;
|
Tuple<string, string, string>[]? playerProperty = null;
|
||||||
if (protocolVersion >= Protocol18Handler.MC_1_19_Version)
|
if (protocolVersion >= Protocol18Handler.MC_1_19_Version)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue