3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00

Don't inject if inactive (#2461)

Dieser Commit ist enthalten in:
Juan Cruz Linsalata 2021-05-02 10:52:07 -03:00 committet von GitHub
Ursprung af0cf1d3f2
Commit 096415cf8e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -51,6 +51,7 @@ public class BungeeChannelInitializer extends ChannelInitializer<Channel> {
// Add originals
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-decoder") == null) return; // Don't inject if no packet-decoder
// Add our transformers