mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-02 08:39:59 +01:00
Don't inject if inactive (#2461)
This commit is contained in:
parent
af0cf1d3f2
commit
096415cf8e
@ -51,6 +51,7 @@ public class BungeeChannelInitializer extends ChannelInitializer<Channel> {
|
|||||||
// Add originals
|
// Add originals
|
||||||
this.method.invoke(this.original, socketChannel);
|
this.method.invoke(this.original, socketChannel);
|
||||||
|
|
||||||
|
if (!socketChannel.isActive()) return; // Don't inject if inactive
|
||||||
if (socketChannel.pipeline().get("packet-encoder") == null) return; // Don't inject if no packet-encoder
|
if (socketChannel.pipeline().get("packet-encoder") == null) return; // Don't inject if no packet-encoder
|
||||||
if (socketChannel.pipeline().get("packet-decoder") == null) return; // Don't inject if no packet-decoder
|
if (socketChannel.pipeline().get("packet-decoder") == null) return; // Don't inject if no packet-decoder
|
||||||
// Add our transformers
|
// Add our transformers
|
||||||
|
Loading…
Reference in New Issue
Block a user