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

Improvements to MessageTranslator #3803

Merged
merged 10 commits into from
Aug 18, 2023
Merged

Conversation

Konicai
Copy link
Member

@Konicai Konicai commented May 29, 2023

  • Renamed overloads of convertMessage to convertJsonMessage where the String parameter is strictly a json string
  • convertMessageLenient was deserializing legacy java messages to a Component, then to json, then back to a Component (with the exact same gson serializer). That is no longer, and it no longer uses convertToJavaMessage.
  • convertToJavaMessage now uses the BEDROCK_SERIALIZER that has bedrock-unique colour codes registered to it.
  • Patch serialization of ScoreComponent until Adventure 1.15.0 is released (see this)
  • Fix deprecations related to DummyLegacyHoverEventSerializer

Closes #4017

@Konicai Konicai added the PR: On hold When a PR is on hold like if it requires a dependency to be updated first label Jun 26, 2023
@Konicai Konicai removed the PR: On hold When a PR is on hold like if it requires a dependency to be updated first label Jun 29, 2023
@Konicai Konicai marked this pull request as ready for review June 29, 2023 04:51
@Konicai
Copy link
Member Author

Konicai commented Aug 15, 2023

Shouldn't this section of code just use & return this method?

Maybe not, for the case of the weird legacy hex format.

@Konicai Konicai merged commit 661a9b4 into GeyserMC:master Aug 18, 2023
1 check passed
@Konicai Konicai deleted the message-translator branch August 18, 2023 03:07
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.

Exceptions on serializing ScoreComponent with null value
2 participants