From 7f8edf8c77f9622a71b9904199aea0bf87f82ebe Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 28 Oct 2023 19:53:49 -0400 Subject: [PATCH] Fix typo in `VelocityRegisteredServer#ping()` --- .../velocitypowered/proxy/server/VelocityRegisteredServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java b/proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java index ca609460f..cfe8f9e54 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java @@ -127,7 +127,7 @@ public class VelocityRegisteredServer implements RegisteredServer, ForwardingAud PingSessionHandler handler = new PingSessionHandler(pingFuture, VelocityRegisteredServer.this, conn, pingOptions.getProtocolVersion()); conn.setActiveSessionHandler(StateRegistry.HANDSHAKE, handler); - conn.addSessionHandler(StateRegistry.LOGIN, handler); + conn.addSessionHandler(StateRegistry.STATUS, handler); } else { pingFuture.completeExceptionally(future.cause()); }