Skip to content

Properly register media holder component on fabric - #1164

Merged
Robotgiggle merged 2 commits into
1.21from
media-holder-fix
Jul 26, 2026
Merged

Properly register media holder component on fabric#1164
Robotgiggle merged 2 commits into
1.21from
media-holder-fix

Conversation

@Robotgiggle

@Robotgiggle Robotgiggle commented Jun 14, 2026

Copy link
Copy Markdown
Member

Fixes #1162 by adding registration code for MediaHolderItem in the relevant part of FabricHexInitializer.

As a side note, I think much of the fabric-side item component stuff should be renamed now that it uses vanilla components rather than Cardinal Components, but that's out of scope for this PR (see #1165 for more).

@github-project-automation github-project-automation Bot moved this to 📋 Backlog in Hex Casting Jun 14, 2026
@Robotgiggle Robotgiggle linked an issue Jun 14, 2026 that may be closed by this pull request

@IridescentVoid IridescentVoid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me

}
}

HexCardinalComponents.MEDIA_HOLDER_LOOKUP.registerForItems({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do any of these need to be de-duplicated?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, all of that is still necessary. The code I added is for handling items with their own classes that implement MediaHolderItem. All the items in that section don't have their own classes (they're just basic Item instances) so they can't extend MediaHolderItem and the media holder has to be registered manually.

@Robotgiggle
Robotgiggle added this pull request to the merge queue Jul 26, 2026
Merged via the queue into 1.21 with commit e08c581 Jul 26, 2026
8 of 9 checks passed
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Hex Casting Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Casting items cannot find their own media reservoir

3 participants