From c88d1509765c1e34f3c47d9361ac8e29dd8cf1ff Mon Sep 17 00:00:00 2001 From: ORelio Date: Thu, 23 Jul 2015 21:38:58 +0200 Subject: [PATCH] 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. --- MinecraftClient/Protocol/Handlers/Protocol16.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MinecraftClient/Protocol/Handlers/Protocol16.cs b/MinecraftClient/Protocol/Handlers/Protocol16.cs index 4acf4447..cf648fc8 100644 --- a/MinecraftClient/Protocol/Handlers/Protocol16.cs +++ b/MinecraftClient/Protocol/Handlers/Protocol16.cs @@ -441,15 +441,11 @@ namespace MinecraftClient.Protocol.Handlers byte[] token = readNextByteArray(); if (serverID == "-") - { ConsoleIO.WriteLineFormatted("§8Server is in offline mode."); - return true; //No need to check session or start encryption - } else - { 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; }