mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
SessionCache: Add backward compatibility for old session file
This commit is contained in:
parent
4b8ca158a8
commit
04d83bf277
1 changed files with 5 additions and 1 deletions
|
|
@ -41,7 +41,11 @@ namespace MinecraftClient.Protocol.Session
|
|||
session.PlayerName = fields[1];
|
||||
session.PlayerID = fields[2];
|
||||
session.ClientID = fields[3];
|
||||
// Backward compatible with old session file without refresh token field
|
||||
if (fields.Length > 4)
|
||||
session.RefreshToken = fields[4];
|
||||
else
|
||||
session.RefreshToken = String.Empty;
|
||||
|
||||
Guid temp;
|
||||
if (!JwtRegex.IsMatch(session.ID))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue