Apotheosis

Apotheosis

90M Downloads

JEI Plugin modifying itemstacks from Ingredient

pietro-lopes opened this issue ยท 0 comments

commented

Hello, I'm opening this issue due to an incompatibility with a feature (Ingredient deduplication) on my mod (AllTheLeaks) which relies on stacks from Ingredients not being modified.

This recipeInputs is storing itemstacks from ingredient without making a copy of it so it can safely be modified later on L61

List<List<ItemStack>> recipeInputs = recipeHolder.value().getIngredients().stream()
.map(Ingredient::getItems)
.map(Arrays::asList)
.collect(Collectors.toCollection(ArrayList::new));

s.set(DataComponents.POTION_CONTENTS, new PotionContents(potion));

This is already being patched on my mod but only for versions up to latest (8.4.0), would be great if this change could be incorporated on main mod.
If you find this change not needed or unnecessary upstream let me know so I can remove the version upper bound restriction of the patch.