3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Fix bug in VelocityRegisteredServer#ping() (5.0.0 version)

Dieser Commit ist enthalten in:
Andrew Steinborn 2023-10-28 20:15:41 -04:00
Ursprung 77ec0d648d
Commit 3584c20167

Datei anzeigen

@ -105,9 +105,11 @@ public class VelocityRegisteredServer implements RegisteredServer, ForwardingAud
Channel ch = future.channel(); Channel ch = future.channel();
MinecraftConnection conn = new MinecraftConnection(ch, server); MinecraftConnection conn = new MinecraftConnection(ch, server);
ch.pipeline().addLast(HANDLER, conn); ch.pipeline().addLast(HANDLER, conn);
conn.setActiveSessionHandler(StateRegistry.HANDSHAKE,
new PingSessionHandler(pingFuture, VelocityRegisteredServer.this, conn, PingSessionHandler handler = new PingSessionHandler(pingFuture,
pingOptions.protocolVersion())); VelocityRegisteredServer.this, conn, pingOptions.protocolVersion());
conn.setActiveSessionHandler(StateRegistry.HANDSHAKE, handler);
conn.addSessionHandler(StateRegistry.STATUS, handler);
} else { } else {
pingFuture.completeExceptionally(future.cause()); pingFuture.completeExceptionally(future.cause());
} }