Skip to content

Fix direct Forge connection (Issue #89) - #275

Open
smirnovv2007 wants to merge 1 commit into
Elytrium:masterfrom
smirnovv2007:master
Open

Fix direct Forge connection (Issue #89)#275
smirnovv2007 wants to merge 1 commit into
Elytrium:masterfrom
smirnovv2007:master

Conversation

@smirnovv2007

Copy link
Copy Markdown

Fixes #89.
Move setLimboJoined call in PlayerChooseInitialServerEvent to only when the player is actually being sent to a Limbo (i.e. nextServer is present). This prevents premature onFirstJoin for Forge clients that connect directly, avoiding the ClassCastException with HandshakeReset/ServerHello. The call is already performed later in spawnPlayerLocal when the player enters Limbo, and for non-Limbo connections the phase initialisation happens naturally via the play session handler.

Removed duplicate call to setLimboJoined for the player.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]

1 participant