fix recycling with deadlock
This commit is contained in:
parent
ac090d05b1
commit
0490de093a
3 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 2.0.15
|
||||||
|
Date: 2025-01-16
|
||||||
|
Fixes:
|
||||||
|
- Fix recycling alongside some other mods, including Deadlock's Stacking Beltboxes
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.0.14
|
Version: 2.0.14
|
||||||
Date: 2025-01-14
|
Date: 2025-01-14
|
||||||
Changes:
|
Changes:
|
||||||
|
|
|
||||||
|
|
@ -944,7 +944,7 @@ end
|
||||||
-- Use amount to set an amount. If that amount is a multiplier instead of an exact amount, set multiply true.
|
-- Use amount to set an amount. If that amount is a multiplier instead of an exact amount, set multiply true.
|
||||||
function util.replace_ingredient(recipe_name, old, new, amount, multiply, options)
|
function util.replace_ingredient(recipe_name, old, new, amount, multiply, options)
|
||||||
if not should_force(options) and bypass(recipe_name) then return end
|
if not should_force(options) and bypass(recipe_name) then return end
|
||||||
if data.raw.recipe[recipe_name] and (data.raw.item[new] or data.raw.fluid[new]) then
|
if data.raw.recipe[recipe_name] and (data.raw.item[new] or data.raw.fluid[new]) and (data.raw.item[old] or data.raw.fluid[old]) then
|
||||||
me.add_modified(recipe_name)
|
me.add_modified(recipe_name)
|
||||||
prepare_redo_recycling(recipe_name)
|
prepare_redo_recycling(recipe_name)
|
||||||
replace_ingredient(data.raw.recipe[recipe_name], old, new, amount, multiply)
|
replace_ingredient(data.raw.recipe[recipe_name], old, new, amount, multiply)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzlead",
|
"name": "bzlead",
|
||||||
"version": "2.0.14",
|
"version": "2.0.15",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"title": "Lead",
|
"title": "Lead",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue