Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Don't inject if inactive (#2461)
Dieser Commit ist enthalten in:
Ursprung
af0cf1d3f2
Commit
096415cf8e
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren