update
This commit is contained in:
parent
07aba69928
commit
2bbb001468
2 changed files with 6 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 1.2.11
|
Version: 1.2.11
|
||||||
Date: 2022-01-15
|
Date: 2022-01-17
|
||||||
Features:
|
Features:
|
||||||
- Crafting efficiency compatibility
|
- (Beta) Crafting efficiency compatibility
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 1.2.10
|
Version: 1.2.10
|
||||||
Date: 2022-12-27
|
Date: 2022-12-27
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,12 @@ if mods["crafting-efficiency-2"] then
|
||||||
|
|
||||||
for i, recipe in pairs(util.me.recipes) do
|
for i, recipe in pairs(util.me.recipes) do
|
||||||
-- add remaining recipes with direct items to find the icons
|
-- 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] = {
|
eff_data[recipe] = {
|
||||||
max = 15,
|
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 },
|
crafting = { efficiency = 10 },
|
||||||
research = { level = 6 },
|
research = { level = 6 },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue