Skip to content

Fix: Player Observer callback types and removed inflight#11

Open
EstebenR wants to merge 3 commits intoSleitnick:mainfrom
EstebenR:patch-1
Open

Fix: Player Observer callback types and removed inflight#11
EstebenR wants to merge 3 commits intoSleitnick:mainfrom
EstebenR:patch-1

Conversation

@EstebenR
Copy link

@EstebenR EstebenR commented Dec 7, 2025

The callback type of Enum.PlayerExitReason was missing, giving an error

I also removed references to inflight which wasn't getting used. It was only used on initial connection to call cleanup with Enum.PlayerExitReason.Unknown in case the player had left and then set to nil.
Setting to nil on connection also meant that if you disconnected the observer, the callback would be called with nil, giving an error if you tried to access it. Made it so that on manual disconnection of observer the cleanup is called with PlayerExitReason.Unknown

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