Skip to content

Fix LootGenerateEvent loot table nullability#14101

Open
charlierichards13 wants to merge 1 commit into
PaperMC:mainfrom
charlierichards13:fix-loot-generate-nullability
Open

Fix LootGenerateEvent loot table nullability#14101
charlierichards13 wants to merge 1 commit into
PaperMC:mainfrom
charlierichards13:fix-loot-generate-nullability

Conversation

@charlierichards13

Copy link
Copy Markdown

Fixes #13266

Updates LootGenerateEvent to reflect that its loot table can be null
when the referenced loot table is unknown or unregistered.

This changes the constructor parameter and getLootTable() return value to
@Nullable and clarifies the behavior in the method's Javadocs.

Testing

  • ./gradlew :paper-api:check

@charlierichards13
charlierichards13 requested a review from a team as a code owner July 25, 2026 17:50
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

LootGenerateEvent.getLootTable annotated as NotNull but can be null sometimes

1 participant