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 the Bukkit component serializer by setting the correct JSONOptions according to the server version #197

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MemencioPerez
Copy link

Fixes #150

Copy link
Member

@zml2008 zml2008 left a comment

Choose a reason for hiding this comment

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

  1. not a full upgrade to newer adventure versions
  2. get the data version from the game, don't do this halfassed garbage

@MemencioPerez
Copy link
Author

  1. not a full upgrade to newer adventure versions
  2. get the data version from the game, don't do this halfassed garbage

I'm sorry I did it, I wasn't very enlightened at the time. Does it work better for you to use Bukkit.getUnsafe() to get the version value of the data or should I use NMS/Reflection?

@MemencioPerez
Copy link
Author

And regarding it not being a full upgrade, do you mean that I should upgrade the rest of the Bukkit platform classes or what specifically?

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.

MinecraftComponentSerializer throws UnsupportedOperationException
2 participants