13
0
geforkt von Mirrors/Velocity

No need to register multiple times

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-04-12 17:20:38 -04:00
Ursprung f49d36b719
Commit aae151e3d9

Datei anzeigen

@ -169,11 +169,15 @@ public class MinecraftConnection extends ChannelInboundHandlerAdapter {
}
private void installDiscardHandler(ChannelHandlerContext ctx) {
ctx.pipeline().addBefore(MINECRAFT_DECODER, "discard", DiscardHandler.HANDLER);
if (ctx.pipeline().get("discard") == null) {
ctx.pipeline().addBefore(MINECRAFT_DECODER, "discard", DiscardHandler.HANDLER);
}
}
private void installDiscardHandler() {
channel.pipeline().addBefore(MINECRAFT_DECODER, "discard", DiscardHandler.HANDLER);
if (channel.pipeline().get("discard") == null) {
channel.pipeline().addBefore(MINECRAFT_DECODER, "discard", DiscardHandler.HANDLER);
}
}
public EventLoop eventLoop() {