mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix Offline BungeeCord 1.5.2 requiring encryption
Vanilla minecraft encryption can be unofficially bypassed on pre-1.7 minecraft when connecting to offline-mode servers (now it IS officially bypassed in offline mode in 1.7+), but BungeeCord 1.5.2 requires encryption even in offline-mode, so enable encryption even in offline-mode. Bug report by xp9kus.
This commit is contained in:
parent
1e801ad415
commit
c88d150976
1 changed files with 2 additions and 6 deletions
|
|
@ -441,16 +441,12 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
byte[] token = readNextByteArray();
|
byte[] token = readNextByteArray();
|
||||||
|
|
||||||
if (serverID == "-")
|
if (serverID == "-")
|
||||||
{
|
|
||||||
ConsoleIO.WriteLineFormatted("§8Server is in offline mode.");
|
ConsoleIO.WriteLineFormatted("§8Server is in offline mode.");
|
||||||
return true; //No need to check session or start encryption
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
ConsoleIO.WriteLineFormatted("§8Handshake successful. (Server ID: " + serverID + ')');
|
ConsoleIO.WriteLineFormatted("§8Handshake successful. (Server ID: " + serverID + ')');
|
||||||
|
|
||||||
return StartEncryption(uuid, username, sessionID, token, serverID, PublicServerkey);
|
return StartEncryption(uuid, username, sessionID, token, serverID, PublicServerkey);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else return false;
|
else return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue