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:
Ursprung
77ec0d648d
Commit
3584c20167
@ -105,9 +105,11 @@ public class VelocityRegisteredServer implements RegisteredServer, ForwardingAud
|
||||
Channel ch = future.channel();
|
||||
MinecraftConnection conn = new MinecraftConnection(ch, server);
|
||||
ch.pipeline().addLast(HANDLER, conn);
|
||||
conn.setActiveSessionHandler(StateRegistry.HANDSHAKE,
|
||||
new PingSessionHandler(pingFuture, VelocityRegisteredServer.this, conn,
|
||||
pingOptions.protocolVersion()));
|
||||
|
||||
PingSessionHandler handler = new PingSessionHandler(pingFuture,
|
||||
VelocityRegisteredServer.this, conn, pingOptions.protocolVersion());
|
||||
conn.setActiveSessionHandler(StateRegistry.HANDSHAKE, handler);
|
||||
conn.addSessionHandler(StateRegistry.STATUS, handler);
|
||||
} else {
|
||||
pingFuture.completeExceptionally(future.cause());
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren