Compare commits

...
2 changed files with 11 additions and 5 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
// Add your dependencies here
dependencies {
api('com.github.GTNewHorizons:CodeChickenCore:1.4.1:dev')
api('com.github.GTNewHorizons:CodeChickenCore:1.4.2:dev')
implementation('com.github.GTNewHorizons:GTNHLib:0.6.21:dev')
shadowImplementation('org.apache.commons:commons-csv:1.10.0')
@@ -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;
}
}
}