From ba0fc37b0eff862d49b6fb87cf260b99f3a51a57 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+Camotoy@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:39:56 -0400 Subject: [PATCH] Actually test it --- .../java/org/geysermc/geyser/session/GeyserSession.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java b/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java index bde1a20f8..f2aa33e6a 100644 --- a/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java +++ b/core/src/main/java/org/geysermc/geyser/session/GeyserSession.java @@ -1007,7 +1007,11 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource { if (protocol.getInboundState() == ProtocolState.CONFIGURATION) { if (packet instanceof ClientboundFinishConfigurationPacket) { // Prevent - GeyserSession.this.ensureInEventLoop(() -> GeyserSession.this.sendDownstreamPacket(new ServerboundFinishConfigurationPacket())); + GeyserSession.this.ensureInEventLoop(() -> session.getChannel().eventLoop().execute(() -> { + session.switchInboundState(() -> protocol.setInboundState(ProtocolState.GAME)); + session.send(new ServerboundFinishConfigurationPacket()); + session.switchOutboundState(() -> protocol.setOutboundState(ProtocolState.GAME)); + })); return; } }