k2so fixes
This commit is contained in:
parent
21a5b6d7fe
commit
2428affa5e
2 changed files with 12 additions and 6 deletions
|
@ -1,4 +1,8 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.20
|
||||
Date: 2025-06-15
|
||||
- Fix load error in certain mod loadouts, especially with K2SO
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.19
|
||||
Date: 2025-05-07
|
||||
Fixes:
|
||||
|
|
|
@ -1896,12 +1896,14 @@ function util.redo_recycling()
|
|||
-- Find all recycling recipes that result in armor and make sure not to output more than 1
|
||||
for _, recipe in pairs(data.raw.recipe) do
|
||||
if recipe.name:find("recycling") then
|
||||
for _, product in pairs(recipe.results) do
|
||||
if data.raw.armor[product.name] then
|
||||
if product.amount then
|
||||
if product.amount > .99 then
|
||||
product.amount = 1
|
||||
product.extra_count_fraction = nil
|
||||
if recipe.results then
|
||||
for _, product in pairs(recipe.results) do
|
||||
if data.raw.armor[product.name] then
|
||||
if product.amount then
|
||||
if product.amount > .99 then
|
||||
product.amount = 1
|
||||
product.extra_count_fraction = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue