mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Update for PacketLib changes
This commit is contained in:
parent
e44b089e19
commit
d8254cb0b2
2 changed files with 4 additions and 4 deletions
|
@ -155,7 +155,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.GeyserMC</groupId>
|
<groupId>com.github.GeyserMC</groupId>
|
||||||
<artifactId>MCProtocolLib</artifactId>
|
<artifactId>MCProtocolLib</artifactId>
|
||||||
<version>1125e220</version>
|
<version>a581308c</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
|
|
|
@ -71,14 +71,14 @@ public final class LocalSession extends TcpSession {
|
||||||
@Override
|
@Override
|
||||||
public void initChannel(LocalChannelWithRemoteAddress channel) {
|
public void initChannel(LocalChannelWithRemoteAddress channel) {
|
||||||
channel.spoofedRemoteAddress(new InetSocketAddress(clientIp, 0));
|
channel.spoofedRemoteAddress(new InetSocketAddress(clientIp, 0));
|
||||||
getPacketProtocol().newClientSession(LocalSession.this);
|
PacketProtocol protocol = getPacketProtocol();
|
||||||
|
protocol.newClientSession(LocalSession.this);
|
||||||
|
|
||||||
refreshReadTimeoutHandler(channel);
|
refreshReadTimeoutHandler(channel);
|
||||||
refreshWriteTimeoutHandler(channel);
|
refreshWriteTimeoutHandler(channel);
|
||||||
|
|
||||||
ChannelPipeline pipeline = channel.pipeline();
|
ChannelPipeline pipeline = channel.pipeline();
|
||||||
pipeline.addLast("encryption", new TcpPacketEncryptor(LocalSession.this));
|
pipeline.addLast("sizer", new TcpPacketSizer(LocalSession.this, protocol.getPacketHeader().getLengthSize()));
|
||||||
pipeline.addLast("sizer", new TcpPacketSizer(LocalSession.this));
|
|
||||||
pipeline.addLast("codec", new TcpPacketCodec(LocalSession.this, true));
|
pipeline.addLast("codec", new TcpPacketCodec(LocalSession.this, true));
|
||||||
pipeline.addLast("manager", LocalSession.this);
|
pipeline.addLast("manager", LocalSession.this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue