Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Update for PacketLib changes
Dieser Commit ist enthalten in:
Ursprung
e44b089e19
Commit
d8254cb0b2
@ -155,7 +155,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.GeyserMC</groupId>
|
||||
<artifactId>MCProtocolLib</artifactId>
|
||||
<version>1125e220</version>
|
||||
<version>a581308c</version>
|
||||
<scope>compile</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
|
@ -71,14 +71,14 @@ public final class LocalSession extends TcpSession {
|
||||
@Override
|
||||
public void initChannel(LocalChannelWithRemoteAddress channel) {
|
||||
channel.spoofedRemoteAddress(new InetSocketAddress(clientIp, 0));
|
||||
getPacketProtocol().newClientSession(LocalSession.this);
|
||||
PacketProtocol protocol = getPacketProtocol();
|
||||
protocol.newClientSession(LocalSession.this);
|
||||
|
||||
refreshReadTimeoutHandler(channel);
|
||||
refreshWriteTimeoutHandler(channel);
|
||||
|
||||
ChannelPipeline pipeline = channel.pipeline();
|
||||
pipeline.addLast("encryption", new TcpPacketEncryptor(LocalSession.this));
|
||||
pipeline.addLast("sizer", new TcpPacketSizer(LocalSession.this));
|
||||
pipeline.addLast("sizer", new TcpPacketSizer(LocalSession.this, protocol.getPacketHeader().getLengthSize()));
|
||||
pipeline.addLast("codec", new TcpPacketCodec(LocalSession.this, true));
|
||||
pipeline.addLast("manager", LocalSession.this);
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren