This commit is contained in:
BruceChen 2022-10-16 20:37:07 +08:00
parent 8d15acaef3
commit db6d6c80bf
22 changed files with 130 additions and 152 deletions

View file

@ -446,9 +446,9 @@ namespace MinecraftClient.Protocol.Handlers
else
entityType = entityPalette.FromId(ReadNextByte(cache), living);
Double entityX = ReadNextDouble(cache);
Double entityY = ReadNextDouble(cache);
Double entityZ = ReadNextDouble(cache);
double entityX = ReadNextDouble(cache);
double entityY = ReadNextDouble(cache);
double entityZ = ReadNextDouble(cache);
byte entityPitch = ReadNextByte(cache);
byte entityYaw = ReadNextByte(cache);

View file

@ -535,7 +535,7 @@ namespace MinecraftClient.Protocol.Handlers
{
session.ServerIDhash = serverIDhash;
session.ServerPublicKey = serverPublicKey;
SessionCache.Store(Config.Main.General.Account.Login.ToLower(), session);
SessionCache.Store(InternalConfig.Login.ToLower(), session);
}
else
{

View file

@ -1974,7 +1974,7 @@ namespace MinecraftClient.Protocol.Handlers
{
session.ServerIDhash = serverIDhash;
session.ServerPublicKey = serverPublicKey;
SessionCache.Store(Config.Main.General.Account.Login.ToLower(), session);
SessionCache.Store(InternalConfig.Login.ToLower(), session);
}
else
{

View file

@ -603,7 +603,7 @@ namespace MinecraftClient.Protocol
session.PlayerID = profile.UUID;
session.ID = accessToken;
session.RefreshToken = msaResponse.RefreshToken;
Config.Main.General.Account.Login = msaResponse.Email;
InternalConfig.Login = msaResponse.Email;
return LoginResult.Success;
}
else