Skip to content

Conversation

@ThePotatoArchivist
Copy link

@ThePotatoArchivist ThePotatoArchivist commented Jan 20, 2026

In vanilla, there is a datagen bug where TagAppender$2#addOptional calls TagAppender#add instead of TagAppender#addOptional. This means that any TagAppender produced by TagAppender#map, such as FabricIntrinsicHolderTagsProvider#valueLookupBuilder, cannot add optional elements as they are handled like required elements. This PR fixes that bug.

This is my first PR so please let me know if the inject should be moved to a different mixin or if it needs tests or other style issues.

@modmuss50 modmuss50 added bug Something isn't working small change labels Jan 20, 2026
@modmuss50
Copy link
Member

Looks great, thanks. Does this apply just to 26.1 or do you need it backporting?

@ekulxam
Copy link
Contributor

ekulxam commented Jan 20, 2026

@ThePotatoArchivist
Copy link
Author

ThePotatoArchivist commented Jan 20, 2026

I don't really need this fix for anything specific, I just noticed it while testing my library. It's a bug in 1.21.11 as well, at least, I'd bet it's been around for a while. I didn't read Sky's message

@ThePotatoArchivist
Copy link
Author

There's probably someone who might find a backport useful though

@modmuss50
Copy link
Member

I tend to only backport stuff if people actually want it, I'll just merge into 26.1 for now.

@modmuss50 modmuss50 merged commit 6757b72 into FabricMC:26.1 Jan 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working small change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants