From 0490de093a7621e8fa527a9e0dda614edfa272f7 Mon Sep 17 00:00:00 2001 From: Brevven Date: Wed, 15 Jan 2025 16:02:11 -0800 Subject: [PATCH] fix recycling with deadlock --- changelog.txt | 5 +++++ data-util.lua | 2 +- info.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index b4f9f25..9769a0f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 Date: 2025-01-14 Changes: diff --git a/data-util.lua b/data-util.lua index 5f39a0d..536a36a 100644 --- a/data-util.lua +++ b/data-util.lua @@ -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. function util.replace_ingredient(recipe_name, old, new, amount, multiply, options) 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) prepare_redo_recycling(recipe_name) replace_ingredient(data.raw.recipe[recipe_name], old, new, amount, multiply) diff --git a/info.json b/info.json index 63631a6..c544525 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "2.0.14", + "version": "2.0.15", "factorio_version": "2.0", "title": "Lead", "author": "Brevven",