Skip to content

Handle overlapping sessions of the same player - #128

Open
R00tB33rMan wants to merge 1 commit into
NichtStudioCode:mainfrom
MagnoliaLLC:fix/overlapping-sessions
Open

R00tB33rMan wants to merge 1 commit into
NichtStudioCode:mainfrom
MagnoliaLLC:fix/overlapping-sessions

Conversation

@R00tB33rMan

Copy link
Copy Markdown

When a player rejoins before their old session is fully removed (e.g. on Folia), Player#equals only compares uuids, so the old session's quit and inventory close hit the new session's packet handler and window.

A player can rejoin before their previous session has been removed completely, e.g. on Folia. Since Player#equals only compares uuids, the old session's quit removed the new session's packet handler, the new session's join threw because a packet handler was already registered, and the old session's inventory close closed the new session's window.

This branch has not been deployed

No deployments
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.

1 participant