Switch server state after sending game profile

Probably fixes #3453
This commit is contained in:
Nassim Jahnke 2023-09-28 11:12:46 +10:00
parent 3b0d1d961a
commit 429e4f0bff

View File

@ -114,6 +114,7 @@ public final class Protocol1_20_2To1_20 extends AbstractProtocol<ClientboundPack
// during the configuration phase before finally transitioning to the play state with the client as well.
registerClientbound(State.LOGIN, ClientboundLoginPackets.GAME_PROFILE.getId(), ClientboundLoginPackets.GAME_PROFILE.getId(), wrapper -> {
wrapper.user().get(ConfigurationState.class).setBridgePhase(BridgePhase.PROFILE_SENT);
wrapper.user().getProtocolInfo().setServerState(State.PLAY);
});
registerServerbound(State.LOGIN, ServerboundLoginPackets.LOGIN_ACKNOWLEDGED.getId(), -1, wrapper -> {