mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-28 07:56:44 +01:00
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
This commit is contained in:
parent
7f6cf4b4a2
commit
b03aaef5a2
1 changed files with 1 additions and 3 deletions
|
@ -106,8 +106,6 @@ public class BasinRecipe extends ProcessingRecipe<SmartInventory> {
|
||||||
continue Ingredients;
|
continue Ingredients;
|
||||||
if (!simulate)
|
if (!simulate)
|
||||||
availableItems.extractItem(slot, 1, false);
|
availableItems.extractItem(slot, 1, false);
|
||||||
// else if (extracted.hasContainerItem())
|
|
||||||
// recipeOutputItems.add(extracted.getContainerItem().copy());
|
|
||||||
extractedItemsFromSlot[slot]++;
|
extractedItemsFromSlot[slot]++;
|
||||||
continue Ingredients;
|
continue Ingredients;
|
||||||
}
|
}
|
||||||
|
@ -159,7 +157,7 @@ public class BasinRecipe extends ProcessingRecipe<SmartInventory> {
|
||||||
recipeOutputItems.add(recipe.getResultItem());
|
recipeOutputItems.add(recipe.getResultItem());
|
||||||
|
|
||||||
if (recipe instanceof CraftingRecipe craftingRecipe) {
|
if (recipe instanceof CraftingRecipe craftingRecipe) {
|
||||||
recipeOutputItems.addAll(craftingRecipe.getRemainingItems(new DummyCraftingContainer(basin.getInputInventory(), extractedItemsFromSlot)));
|
recipeOutputItems.addAll(craftingRecipe.getRemainingItems(new DummyCraftingContainer(availableItems, extractedItemsFromSlot)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue