2019-04-23 10:09:26 +02:00
|
|
|
From 85dea98d06763a3709aa6f6fb2354453e336ae59 Mon Sep 17 00:00:00 2001
|
2016-12-04 17:42:27 +01:00
|
|
|
From: Techcable <Techcable@techcable.net>
|
|
|
|
Date: Mon, 6 Jun 2016 13:36:10 -0600
|
|
|
|
Subject: [PATCH] Don't send KICK packets while in HANDSHAKE state
|
|
|
|
|
|
|
|
|
|
|
|
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
|
2019-04-23 10:09:26 +02:00
|
|
|
index 6a193d6f..b76eae23 100644
|
2016-12-04 17:42:27 +01:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
2019-04-23 10:09:26 +02:00
|
|
|
@@ -565,7 +565,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
2017-01-17 16:05:13 +01:00
|
|
|
@Override
|
|
|
|
public void disconnect(final BaseComponent... reason)
|
|
|
|
{
|
|
|
|
- if ( thisState != State.STATUS && thisState != State.PING )
|
|
|
|
+ if ( thisState != State.STATUS && thisState != State.PING && thisState != State.HANDSHAKE ) // Waterfall: Don't kick during handshake
|
|
|
|
{
|
|
|
|
ch.delayedClose( new Kick( ComponentSerializer.toString( reason ) ) );
|
|
|
|
} else
|
2016-12-04 17:42:27 +01:00
|
|
|
--
|
2019-04-23 10:09:26 +02:00
|
|
|
2.21.0
|
2016-12-04 17:42:27 +01:00
|
|
|
|