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 a default message value to DisconnectPacket #224

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

BrandPVP
Copy link
Contributor

When you decode this packet and want to get the message property, it will throw an error if it's not initialized and there is no way to check it

@dktapps
Copy link
Member

dktapps commented Feb 19, 2024

It should be set to null in decodePayload, not here

@BrandPVP
Copy link
Contributor Author

done?

@dktapps dktapps merged commit 0f3ebf1 into pmmp:master Feb 20, 2024
5 checks passed
@dktapps
Copy link
Member

dktapps commented Feb 20, 2024

Thanks!

dktapps pushed a commit that referenced this pull request Feb 23, 2024
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