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 NPE with enchantable #11557

Merged
merged 1 commit into from
Nov 9, 2024
Merged

Conversation

Lulu13022002
Copy link
Contributor

@Lulu13022002 Lulu13022002 commented Nov 1, 2024

ItemMeta#setEnchantable is nullable but yet passing null result in an NPE on Paper.

Also fixes a bunch of leftover during the update:
migrate the generated content to jspecify, make EnchantmentKeys#create public
undeprecate some fields on Registry
register instrument registry as data driven registry

@Lulu13022002 Lulu13022002 requested a review from a team as a code owner November 1, 2024 17:31
@Lulu13022002 Lulu13022002 force-pushed the fix/enchantable-misc branch 4 times, most recently from d6d3c10 to c87bd4a Compare November 3, 2024 21:20
@lynxplay lynxplay merged commit 59b79c8 into PaperMC:master Nov 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

4 participants