diff --git a/changelog.txt b/changelog.txt index 775a2e5..1dfbced 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Date: ???? - Add compatibility with AAI Signal Transmission. Now researched after logistics science and uses contemporary ingredients - Adjusted logic that determines the amount and name of a product to display with the "Add recipe signals" startup setting. - Fix a crash with Schall Machine Scaling + - Fixed a crash when cleaning up recycling recipes created by quality that had no results. Resolves https://github.com/pyanodon/pybugreports/issues/1284 --------------------------------------------------------------------------------------------------- Version: 3.0.39 Date: 2025-09-15 diff --git a/prototypes/quality.lua b/prototypes/quality.lua index ec152c3..7942f9f 100644 --- a/prototypes/quality.lua +++ b/prototypes/quality.lua @@ -4,7 +4,7 @@ local RECYCLING_ICON_FILEPATH = "__quality__/graphics/icons/recycling.png" local deadrecipes = {} for r, recipe in pairs(data.raw.recipe) do - if string.match(recipe.name, "recycling") and recipe.icons and recipe.icons[1] and recipe.icons[1].icon == RECYCLING_ICON_FILEPATH then + if string.match(recipe.name, "recycling") and recipe.icons and recipe.icons[1] and recipe.icons[1].icon == RECYCLING_ICON_FILEPATH and #(recipe.results or {}) > 0 then if data.raw.item[recipe.ingredients[1].name] == nil or data.raw.item[recipe.results[1].name] == nil then table.insert(deadrecipes, recipe.name) end