Compare commits

..
Author SHA1 Message Date
Martin Robertz 085563c3fe update 2025-04-28 20:13:17 +02:00
slprime 4153ecdbe6 add search placeholder 2025-04-27 14:55:30 +03:00
slprime 9ee3b1a3e6 Merge branch 'master' into format_item_quantity_field 2025-04-26 00:43:17 +03:00
slprime d4d9de1e75 Filtering the input in the ItemQuantityField 2025-04-25 22:17:04 +03:00
2 changed files with 7 additions and 12 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.2:dev')
api('com.github.GTNewHorizons:CodeChickenCore:1.4.1:dev')
implementation('com.github.GTNewHorizons:GTNHLib:0.6.21:dev')
shadowImplementation('org.apache.commons:commons-csv:1.10.0')
@@ -882,19 +882,14 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
if (NEIClientConfig.showCycledIngredientsTooltip() && itemstack != null) {
PositionedStack hovered = null;
outer: for (int refIndex = 0; refIndex < indices.size(); refIndex++) {
for (int refIndex = 0; refIndex < indices.size() && hovered == null; refIndex++) {
final int recipeIndex = indices.get(refIndex);
final List<PositionedStack> stacks = handler.original.getIngredientStacks(recipeIndex);
List<List<PositionedStack>> stackGroups = Arrays.asList(
handler.original.getIngredientStacks(recipeIndex),
handler.original.getOtherStacks(recipeIndex));
for (List<PositionedStack> group : stackGroups) {
for (PositionedStack pStack : group) {
if (isMouseOver(pStack, refIndex)) {
hovered = pStack;
break outer;
}
for (PositionedStack pStack : stacks) {
if (isMouseOver(pStack, refIndex)) {
hovered = pStack;
break;
}
}
}