From fc6763be3b9e8a0bd078262bb9f78b401a92df31 Mon Sep 17 00:00:00 2001 From: mezz Date: Tue, 8 Oct 2024 10:39:37 +0900 Subject: [PATCH] Allow focus-linking with invisible recipe slots --- .../gui/recipes/layout/builder/RecipeLayoutBuilder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/src/main/java/mezz/jei/library/gui/recipes/layout/builder/RecipeLayoutBuilder.java b/Library/src/main/java/mezz/jei/library/gui/recipes/layout/builder/RecipeLayoutBuilder.java index 6ee8106ed..b5e4edca3 100644 --- a/Library/src/main/java/mezz/jei/library/gui/recipes/layout/builder/RecipeLayoutBuilder.java +++ b/Library/src/main/java/mezz/jei/library/gui/recipes/layout/builder/RecipeLayoutBuilder.java @@ -98,8 +98,7 @@ private void addOutputSlotTooltipCallback(RecipeSlotBuilder slot) { @Override public IIngredientAcceptor addInvisibleIngredients(RecipeIngredientRole role) { - // invisible slots are only used by IngredientSupplierBuilder, and are ignored here - return IngredientAcceptorVoid.INSTANCE; + return new RecipeSlotBuilder(ingredientManager, nextSlotIndex++, role); } @Override