Skip to content

Fix Adventure Codec for ClickEvent#custom when BinaryTagHolder is null#14075

Merged
electronicboy merged 1 commit into
PaperMC:mainfrom
Doc94:fix/14072-click-event-optional-nbt
Jul 21, 2026
Merged

Fix Adventure Codec for ClickEvent#custom when BinaryTagHolder is null#14075
electronicboy merged 1 commit into
PaperMC:mainfrom
Doc94:fix/14072-click-event-optional-nbt

Conversation

@Doc94

@Doc94 Doc94 commented Jul 17, 2026

Copy link
Copy Markdown
Member

Fix #14072

Looks like since Adventure 5 the BinaryTagHolder for ClickEvent#custom can be null causing issues in the Adventure Codec because mark that field like NonNull, this PR just handle that case for use the correct behaviour.

@Doc94
Doc94 requested a review from a team as a code owner July 17, 2026 03:44
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Jul 17, 2026
@Doc94
Doc94 force-pushed the fix/14072-click-event-optional-nbt branch from c969199 to 41ae6cc Compare July 17, 2026 03:56
@papermc-projects papermc-projects Bot moved this from Awaiting review to Full approval in Paper PR Queue Jul 18, 2026
@electronicboy
electronicboy merged commit 3a55f62 into PaperMC:main Jul 21, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Full approval to Merged in Paper PR Queue Jul 21, 2026
@Doc94
Doc94 deleted the fix/14072-click-event-optional-nbt branch July 21, 2026 11:31
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.

Can't create a Custom ClickEvent without a BinaryTagHolder

4 participants