geforkt von Mirrors/Velocity
No need to register multiple times
Dieser Commit ist enthalten in:
Ursprung
558c158592
Commit
4494033fbe
@ -162,11 +162,15 @@ public class MinecraftConnection extends ChannelInboundHandlerAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void installDiscardHandler(ChannelHandlerContext ctx) {
|
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() {
|
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() {
|
public EventLoop eventLoop() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren