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

Fix ViaFacet component type #95

Merged
merged 3 commits into from Jul 21, 2022
Merged

Fix ViaFacet component type #95

merged 3 commits into from Jul 21, 2022

Conversation

kennytv
Copy link
Contributor

@kennytv kennytv commented Jun 15, 2022

Use the correct type when writing components as jsonelements instead of strings; this didn't cause any issue before because there were no handlers in Via trying to get the expected component type, but one has been added in 1.19 protocol transformation, causing an error when sending chat packets to 1.19+ clients.

The majorVersion method on ViaAPI was added in 4.0.2 (a long while ago), now being checked to make sure this doesn't break on 5.x in case API changes a lot again.

Unrelated to the issue, but this also uses PacketWrapper.scheduleSend instead of send to schedule this to the netty thread instead of any random thread this may be called on

@lucko lucko merged commit 9d6c831 into KyoriPowered:master Jul 21, 2022
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.

None yet

3 participants