mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix 1.19.3 key exchange in offline mode
This commit is contained in:
parent
92a911ce99
commit
1f54a7c247
5 changed files with 12 additions and 6 deletions
|
|
@ -2415,7 +2415,7 @@ namespace MinecraftClient
|
|||
/// <summary>
|
||||
/// Called when a server was successfully joined
|
||||
/// </summary>
|
||||
public void OnGameJoined()
|
||||
public void OnGameJoined(bool isOnlineMode)
|
||||
{
|
||||
string? bandString = Config.Main.Advanced.BrandInfo.ToBrandString();
|
||||
if (!String.IsNullOrWhiteSpace(bandString))
|
||||
|
|
@ -2432,7 +2432,7 @@ namespace MinecraftClient
|
|||
(byte)Config.MCSettings.MainHand);
|
||||
|
||||
if (protocolversion >= Protocol18Handler.MC_1_19_3_Version
|
||||
&& playerKeyPair != null)
|
||||
&& playerKeyPair != null && isOnlineMode)
|
||||
handler.SendPlayerSession(playerKeyPair);
|
||||
|
||||
if (protocolversion < Protocol18Handler.MC_1_19_3_Version)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue