Skip to content

Commit

Permalink
Merge pull request #1122 from SymmetricDevs/revert-1121-recycling
Browse files Browse the repository at this point in the history
Revert "Copies itemstacks in RecyclingHelper so it won't modify existing recipes"
  • Loading branch information
trainvoi authored Nov 25, 2024
2 parents 0425cd3 + 7b0f1a9 commit b28bea3
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 b28bea3

Please sign in to comment.