From 548f754823212f56033a858fab89a150a63c70aa Mon Sep 17 00:00:00 2001 From: slprime <31038811+slprime@users.noreply.github.com> Date: Mon, 19 Jan 2026 08:46:46 +0200 Subject: [PATCH] Fix Autocrafting for recipe without ingredients in bookmarks (#841) --- src/main/java/codechicken/nei/api/ShortcutInputHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/codechicken/nei/api/ShortcutInputHandler.java b/src/main/java/codechicken/nei/api/ShortcutInputHandler.java index f7b33789..40642210 100644 --- a/src/main/java/codechicken/nei/api/ShortcutInputHandler.java +++ b/src/main/java/codechicken/nei/api/ShortcutInputHandler.java @@ -234,12 +234,12 @@ public abstract class ShortcutInputHandler { if (recipe != null) { math = RecipeChainMath.of(recipe, 1); } - } else if (slot.getRecipeId() != null && slot.getType() == BookmarkItemType.RESULT) { + } else if (slot.getRecipeId() != null && slot.getType() != BookmarkItemType.INGREDIENT) { if (slot.getGroup().crafting == null) { final Recipe recipe = Recipe.of(slot.getRecipeId()); if (recipe != null) { - math = RecipeChainMath.of(recipe, slot != null ? slot.getMultiplier() : 1); + math = RecipeChainMath.of(recipe, Math.max(1, slot != null ? slot.getMultiplier() : 1)); } } else { math = ItemPanels.bookmarkPanel.getGrid()