Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Ensure pipeline parts exist before injecting #1168
Dieser Commit ist enthalten in:
Ursprung
a016eade01
Commit
c5ba5b4647
@ -30,6 +30,9 @@ public class BungeeChannelInitializer extends ChannelInitializer<SocketChannel>
|
|||||||
new ProtocolPipeline(info);
|
new ProtocolPipeline(info);
|
||||||
// Add originals
|
// Add originals
|
||||||
this.method.invoke(this.original, socketChannel);
|
this.method.invoke(this.original, socketChannel);
|
||||||
|
|
||||||
|
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
|
// Add our transformers
|
||||||
BungeeEncodeHandler encoder = new BungeeEncodeHandler(info);
|
BungeeEncodeHandler encoder = new BungeeEncodeHandler(info);
|
||||||
BungeeDecodeHandler decoder = new BungeeDecodeHandler(info);
|
BungeeDecodeHandler decoder = new BungeeDecodeHandler(info);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren