Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2025-01-11 15:41:14 +01:00
No need to register multiple times
Dieser Commit ist enthalten in:
Ursprung
f49d36b719
Commit
aae151e3d9
@ -169,12 +169,16 @@ public class MinecraftConnection extends ChannelInboundHandlerAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void installDiscardHandler(ChannelHandlerContext ctx) {
|
private void installDiscardHandler(ChannelHandlerContext ctx) {
|
||||||
|
if (ctx.pipeline().get("discard") == null) {
|
||||||
ctx.pipeline().addBefore(MINECRAFT_DECODER, "discard", DiscardHandler.HANDLER);
|
ctx.pipeline().addBefore(MINECRAFT_DECODER, "discard", DiscardHandler.HANDLER);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void installDiscardHandler() {
|
private void installDiscardHandler() {
|
||||||
|
if (channel.pipeline().get("discard") == null) {
|
||||||
channel.pipeline().addBefore(MINECRAFT_DECODER, "discard", DiscardHandler.HANDLER);
|
channel.pipeline().addBefore(MINECRAFT_DECODER, "discard", DiscardHandler.HANDLER);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public EventLoop eventLoop() {
|
public EventLoop eventLoop() {
|
||||||
return channel.eventLoop();
|
return channel.eventLoop();
|
||||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren