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 49ab2764c4
Commit 4ddc55a5b7

Datei anzeigen

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