From a02b601b6c5d343475767685c0e5f39780e09c6e Mon Sep 17 00:00:00 2001 From: Gijs de Jong <14833076+oxkitsune@users.noreply.github.com> Date: Thu, 23 May 2024 20:09:53 +0200 Subject: [PATCH] Pass through packets in config state (#1326) --- .../connection/client/ClientConfigSessionHandler.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java index c1ed4a87a..d9c5295db 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java @@ -128,17 +128,20 @@ public class ClientConfigSessionHandler implements MinecraftSessionHandler { public boolean handle(PingIdentifyPacket packet) { if (player.getConnectionInFlight() != null) { player.getConnectionInFlight().ensureConnected().write(packet); + return true; } - return true; + + return false; } @Override public boolean handle(KnownPacksPacket packet) { if (player.getConnectionInFlight() != null) { player.getConnectionInFlight().ensureConnected().write(packet); + return true; } - return true; + return false; } @Override