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(bukkit): create registry ResourceKey directly #96

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

Machine-Maker
Copy link
Contributor

Previously they were fetched from registry instances which are harder to obtain. Now it just creates them using the static methods available on ResourceKey.

Added an example command that uses the parser in question to show it now works.

Fixes #95

Previously they were fetched from registry instances which are
harder to obtain. Now it just creates them using the static
methods available on ResourceKey.
@Citymonstret Citymonstret requested a review from jpenilla August 18, 2024 07:58
@jpenilla
Copy link
Member

Have you checked that this will still work back to 1.19.3?

@Machine-Maker
Copy link
Contributor Author

Have you checked that this will still work back to 1.19.3?

I looked at the mappings for older versions and the createRegistryKey method has existed for a while, and always been obfuscated to a. Is that what you mean?

Copy link
Member

@jpenilla jpenilla left a comment

Choose a reason for hiding this comment

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

@jpenilla jpenilla merged commit d1a5d25 into Incendo:master Aug 21, 2024
1 check passed
@Machine-Maker Machine-Maker deleted the fix/enchant-parser branch August 26, 2024 03:46
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.

bukkit/paper: EnchantmentParser broken in 1.21.1
3 participants