mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-09-18 02:51:23 +02:00
Fixed Eaglercraft pinging for <=1.6.4 servers
This commit is contained in:
parent
93ce462636
commit
9949f2e729
@ -339,6 +339,10 @@ public class EaglercraftHandler extends MessageToMessageCodec<WebSocketFrame, By
|
|||||||
this.state = State.STATUS;
|
this.state = State.STATUS;
|
||||||
this.version = VersionEnum.r1_8;
|
this.version = VersionEnum.r1_8;
|
||||||
|
|
||||||
|
if (ctx.pipeline().get(Client2ProxyChannelInitializer.LEGACY_PASSTHROUGH_HANDLER_NAME) != null) {
|
||||||
|
ctx.pipeline().remove(Client2ProxyChannelInitializer.LEGACY_PASSTHROUGH_HANDLER_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
out.add(this.writeHandshake(ctx.alloc().buffer(), ConnectionState.STATUS));
|
out.add(this.writeHandshake(ctx.alloc().buffer(), ConnectionState.STATUS));
|
||||||
|
|
||||||
final ByteBuf statusRequest = ctx.alloc().buffer();
|
final ByteBuf statusRequest = ctx.alloc().buffer();
|
||||||
|
Loading…
Reference in New Issue
Block a user