Skip to content

Commit

Permalink
Revert "Copies itemstacks in RecyclingHelper so it won't modify exist…
Browse files Browse the repository at this point in the history
…ing recipes"
  • Loading branch information
MCTian-mi authored Nov 25, 2024
1 parent 0425cd3 commit 7b0f1a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions groovy/globals/RecyclingHelper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ class RecyclingHelper {
}

static final void handleRecycling(ItemStack output, List<?> inputs) {
ItemStack copiedOutput = output.copy();
List<?> copiedInputs = inputs.stream().map(ItemStack::copy).collect(Collectors.toList());
RecyclingRecipes.registerRecyclingRecipes(output.withAmount(1),
getRecyclingIngredients(copiedOutput.getAmount(), copiedInputs.flatten()).getMaterials(),
getRecyclingIngredients(output.getAmount(), inputs.flatten()).getMaterials(),
false, /*OreDictUnifier.getPrefix(output)*/ null) // See the comment at the top of this class
}

Expand Down

0 comments on commit 7b0f1a9

Please sign in to comment.