
itemStacks.forEach(itemStack -> merge(add, positiveOnly, container, itemStack));
</BUG>
}
<BUG>public static void merge(boolean add, boolean positiveOnly, List<ItemStack> container, ItemStack[] itemStacks) {

for (ItemStack itemStackExternal : itemStacks) {
if (itemStackExternal != null)
merge(add, positiveOnly, container, itemStackExternal);</BUG>
}

List<ItemStack> catalyst;
public CostList(ItemStack itemStack) {
long amount = NBT.getAmount(itemStack);
items = new ArrayList<>();
catalyst = new LinkedList<>();
catalyst.add(itemStack.copy());
items.add(NBT.setAmount(itemStack.copy(), -amount));
