From 7b0f1a97aef995c72419d935d1ab5c6ab3642ff8 Mon Sep 17 00:00:00 2001 From: Tian mi <35869948+MCTian-mi@users.noreply.github.com> Date: Mon, 25 Nov 2024 22:12:45 +0800 Subject: [PATCH] Revert "Copies itemstacks in RecyclingHelper so it won't modify existing recipes" --- groovy/globals/RecyclingHelper.groovy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/groovy/globals/RecyclingHelper.groovy b/groovy/globals/RecyclingHelper.groovy index c7f09e267..94d4c69d4 100644 --- a/groovy/globals/RecyclingHelper.groovy +++ b/groovy/globals/RecyclingHelper.groovy @@ -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 }