Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add player disconnect detect #378

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Alx-Lai
Copy link
Collaborator

@Alx-Lai Alx-Lai commented Aug 8, 2022

No description provided.

@Alx-Lai Alx-Lai requested a review from john0312 August 8, 2022 07:53
@@ -367,7 +367,19 @@ class Standalone {
// No location? Just skip.
return;
}

if (msg.removed) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can consider making killPlayer() tolerant of player not being online, then change this to call killPlayer() instead.

However, it's only a small improvement in terms of reusing code, so it's up to you on if you want to make the change or just merge the current variant as is.

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.

2 participants