Make the "Accepts following:" tooltip work for otherStacks and not just ingredientStacks.

This commit is contained in:
koolkrafter5 committed 2025-05-12 03:40:43 -04:00
1 parent 8ae3304861
commit 4f1ad1d3ba
1 file changed
+10 -4
@@ -882,14 +882,20 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
if (NEIClientConfig.showCycledIngredientsTooltip() && itemstack != null) {
PositionedStack hovered = null;
for (int refIndex = 0; refIndex < indices.size() && hovered == null; refIndex++) {
outer: for (int refIndex = 0; refIndex < indices.size(); refIndex++) {
final int recipeIndex = indices.get(refIndex);
final List<PositionedStack> stacks = handler.original.getIngredientStacks(recipeIndex);
for (PositionedStack pStack : stacks) {
for (PositionedStack pStack : handler.original.getIngredientStacks(recipeIndex)) {
if (isMouseOver(pStack, refIndex)) {
hovered = pStack;
break;
break outer;
}
}
for (PositionedStack pStack : handler.original.getOtherStacks(recipeIndex)) {
if (isMouseOver(pStack, refIndex)) {
hovered = pStack;
break outer;
}
}
}