From 9f1be54c70b0efa7fbb7777726b242c0a5ecd13f Mon Sep 17 00:00:00 2001 From: Brevven Date: Tue, 24 Dec 2024 13:44:45 -0800 Subject: [PATCH] set correct number of outputs for recyclers --- changelog.txt | 7 ++++++- info.json | 2 +- titanium-recipe-final.lua | 15 +++++++++++++-- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index d42121f..6051024 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,11 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.1 +Date: 2024-12-24 + Fixes: + - Fix number of slots in recycling machines to accomdodate extra titanium plate output +--------------------------------------------------------------------------------------------------- Version: 2.0.0 -Date: 2024-12-06 +Date: 2024-12-24 Features: - Works with Factorio 2.0 vanilla and Space Age. Can be added to existing games, but currently uses a workaround to generate ore patches on new chunks when added to an existing game due to an issue (https://forums.factorio.com/124996) diff --git a/info.json b/info.json index 47c9e12..5fc8b0a 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bztitanium", - "version": "2.0.0", + "version": "2.0.1", "factorio_version": "2.0", "title": "Titanium", "author": "Brevven", diff --git a/titanium-recipe-final.lua b/titanium-recipe-final.lua index 7b69c11..dbc1a7b 100644 --- a/titanium-recipe-final.lua +++ b/titanium-recipe-final.lua @@ -1,2 +1,13 @@ -local util = require("__bztitanium__.data-util"); - +local util = require("__bztitanium__.data-util") + + +-- Set correct number of outputs for recyclers +for i, entity in pairs(data.raw.furnace) do + if util.contains(entity.crafting_categories, "recycling-or-hand-crafting") then + if entity.result_inventory_size < #data.raw.recipe["scrap-recycling"].results then + entity.result_inventory_size = #data.raw.recipe["scrap-recycling"].results + end + end +end + +