bte_optimization_fixes-1.46.0.jar
Curse Maven Snippet
What's new
Pass the slot item to JEI recipe slot tooltips
JEI 1.19.2-11.8.1 draws recipe slot tooltips without the ingredient:
RecipeLayout.drawOverlays fills a JeiTooltip with the slot lines and draws
it without setIngredient, so Forge fires RenderTooltipEvent.GatherComponents
with ItemStack.EMPTY. Tooltip components added by other mods (Quark's
attribute line with icons, tooltip images...) were missing in every JEI
category, while the ingredient list showed them because it does pass the
ingredient.
Two client mixins fix it: JeiRecipeLayoutTooltipMixin remembers the
hovered slot's displayed ingredient when JEI asks for its tooltip lines,
and JeiTooltipIngredientMixin hands it to the JeiTooltip right before it
is drawn, so it takes the same path as the ingredient list tooltips.
This mod has no additional files