From 86e079a4b1a625af682ba4248f4bd075644d4b28 Mon Sep 17 00:00:00 2001 From: DartCZ Date: Thu, 28 Sep 2023 06:55:00 +1000 Subject: [PATCH] #3523, #3534: Fix kicking players with error --- .../main/java/net/md_5/bungee/connection/UpstreamBridge.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java index fdc29b6a..26563db4 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java @@ -136,6 +136,11 @@ public class UpstreamBridge extends PacketHandler { if ( con.getServer() != null ) { + if ( con.getServer().getCh().isClosed() ) + { + return; + } + Protocol serverEncode = con.getServer().getCh().getEncodeProtocol(); // #3527: May still have old packets from client in game state when switching server to configuration state - discard those if ( packet.protocol != serverEncode )