From d999ee20583445f96934e491da72e043ddf4c5af Mon Sep 17 00:00:00 2001 From: Gero Date: Sun, 14 Jul 2024 16:29:30 +0200 Subject: [PATCH] Fix PlayerConfigurationEvent only being called for initial configuration on 1.20.5+ --- .../proxy/connection/client/ClientConfigSessionHandler.java | 5 +++++ 1 file changed, 5 insertions(+) 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 7d232b09f..7bb7bedfa 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 @@ -79,6 +79,11 @@ public class ClientConfigSessionHandler implements MinecraftSessionHandler { configSwitchFuture = new CompletableFuture<>(); } + @Override + public void deactivated() { + configurationFuture = null; + } + @Override public boolean handle(final KeepAlivePacket packet) { player.forwardKeepAlive(packet);