Skip to content

Use getHolder for book enchantments#5583

Open
Klisz wants to merge 1 commit into
VazkiiMods:masterfrom
Klisz:master
Open

Use getHolder for book enchantments#5583
Klisz wants to merge 1 commit into
VazkiiMods:masterfrom
Klisz:master

Conversation

@Klisz

@Klisz Klisz commented Jun 10, 2026

Copy link
Copy Markdown

Makes InfluenceEntry have an InfluenceLocations field instead of an Influence, and keeps its enchanted book stacks as empty optionals until setRecipe is called. This way, it can use the level's registry access instead of the hacky proxy, and therefore use the enchantment registry's own reference holders for the enchantments, rather than creating Direct holders for them. This closes #5556, and also solves another small unreported issue I've noticed wherein pressing the recipe-lookup or uses-lookup key on an enchanted book doesn't bring up the relevant influencing recipes.

Makes InfluenceEntry have an InfluenceLocations field instead of an Influence, and keeps its enchanted book stacks as empty optionals until setRecipe is called. This way, it can use the level's registry access instead of the hacky proxy, and therefore use the enchantment registry's own reference holders for the enchantments, rather than creating Direct holders for them. This closes VazkiiMods#5556, and also solves another small unreported issue I've noticed wherein pressing the recipe-lookup or uses-lookup key on an enchanted book doesn't bring up the relevant influencing recipes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[1.21.1] Candle Influencing not showing in JEI

1 participant