Waterfall/Waterfall-Proxy-Patches/0013-Change-state-to-encrypt-only-if-onlineMode-is-true.patch
2021-09-30 22:27:34 -03:00

23 lines
1.0 KiB
Diff

From 21ea3112cf27d28dbf72ded9b702fd031c9336a5 Mon Sep 17 00:00:00 2001
From: foss-mc <69294560+foss-mc@users.noreply.github.com>
Date: Wed, 16 Dec 2020 18:25:03 +0800
Subject: [PATCH] Change state to encrypt only if onlineMode is true
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
index 5efcb9b2c..751643a68 100644
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
@@ -448,6 +448,8 @@ public class InitialHandler extends PacketHandler implements PendingConnection
{
thisState = State.ENCRYPT;
unsafe().sendPacket( request = EncryptionUtil.encryptRequest() );
+ // FlameCord - Change state to encrypt only if onlineMode is true
+ thisState = State.ENCRYPT;
} else
{
thisState = State.FINISHING;
--
2.32.0.windows.1