From b03aaef5a217834933b3ba11a4dc645cf452e8d1 Mon Sep 17 00:00:00 2001 From: caelwarner Date: Fri, 30 Sep 2022 15:39:19 -0700 Subject: [PATCH] Switched getInputInventory() to availableItems - Using availableItems instead of getInputInventory() in case an item in the output inventory is being used as an ingredient - Removed commented code --- .../create/content/contraptions/processing/BasinRecipe.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/processing/BasinRecipe.java b/src/main/java/com/simibubi/create/content/contraptions/processing/BasinRecipe.java index 729bb563f..514c0698b 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/processing/BasinRecipe.java +++ b/src/main/java/com/simibubi/create/content/contraptions/processing/BasinRecipe.java @@ -106,8 +106,6 @@ public class BasinRecipe extends ProcessingRecipe { continue Ingredients; if (!simulate) availableItems.extractItem(slot, 1, false); -// else if (extracted.hasContainerItem()) -// recipeOutputItems.add(extracted.getContainerItem().copy()); extractedItemsFromSlot[slot]++; continue Ingredients; } @@ -159,7 +157,7 @@ public class BasinRecipe extends ProcessingRecipe { recipeOutputItems.add(recipe.getResultItem()); if (recipe instanceof CraftingRecipe craftingRecipe) { - recipeOutputItems.addAll(craftingRecipe.getRemainingItems(new DummyCraftingContainer(basin.getInputInventory(), extractedItemsFromSlot))); + recipeOutputItems.addAll(craftingRecipe.getRemainingItems(new DummyCraftingContainer(availableItems, extractedItemsFromSlot))); } } }