Set state before set session handler

This commit is contained in:
Adrian Bergqvist 2022-11-29 15:51:29 +01:00
parent f6fa70420a
commit ba94616ee7
No known key found for this signature in database
GPG Key ID: FAE7D8EDE225E686

View File

@ -77,8 +77,8 @@ public class FML2CRPMClientConnectionPhase extends VelocityForgeClientConnection
this.clientPhase = this.clientPhase == ClientPhase.MODLIST ? ClientPhase.MODDED : ClientPhase.VANILLA;
connection.setSessionHandler(((VelocityForgeHandshakeSessionHandler) connection.getSessionHandler()).getOriginal());
connection.setState(StateRegistry.PLAY);
connection.setSessionHandler(((VelocityForgeHandshakeSessionHandler) connection.getSessionHandler()).getOriginal());
((VelocityServer) Ambassador.getInstance().server).registerConnection(player);
backupServer = null;