From 1993dd5a65968cfd5b1624c774ce667d32bfc0ad Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 1 Feb 2022 11:19:03 +0100 Subject: [PATCH] Fix login disconnect errors --- .../src/com/comphenix/tinyprotocol/TinyProtocol.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java b/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java index 658262f..2b0ba73 100644 --- a/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java +++ b/SpigotCore_Main/src/com/comphenix/tinyprotocol/TinyProtocol.java @@ -274,6 +274,9 @@ public class TinyProtocol { // Inject our packet interceptor if (interceptor == null) { interceptor = new PacketInterceptor(); + if(!channel.isActive()) + return interceptor; + channel.pipeline().addBefore("packet_handler", handlerName, interceptor); uninjectedChannels.remove(channel); }