This commit is contained in:
Brevven 2023-01-16 19:03:34 -08:00
parent 07aba69928
commit 2bbb001468
2 changed files with 6 additions and 4 deletions

View file

@ -1,8 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 1.2.11
Date: 2022-01-15
Date: 2022-01-17
Features:
- Crafting efficiency compatibility
- (Beta) Crafting efficiency compatibility
---------------------------------------------------------------------------------------------------
Version: 1.2.10
Date: 2022-12-27

View file

@ -7,10 +7,12 @@ if mods["crafting-efficiency-2"] then
for i, recipe in pairs(util.me.recipes) do
-- add remaining recipes with direct items to find the icons
if data.raw.recipe[recipe] and data.raw.item[recipe] and not eff_data[recipe] and util.get_result_count(recipe) == 1 then
if data.raw.recipe[recipe] and (data.raw.item[recipe] or data.raw.fluid[recipe])
and not eff_data[recipe] and
(data.raw.recipe[recipe].main_product or util.get_result_count(recipe) == 1) then
eff_data[recipe] = {
max = 15,
icon = data.raw.item[recipe].icon,
icon = data.raw.item[recipe] and data.raw.item[recipe].icon or data.raw.fluid[recipe].icon,
crafting = { efficiency = 10 },
research = { level = 6 },
}