From 988e3a51f36cece0748bb6dffe88a2e85b71a066 Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 24 Jan 2025 18:05:58 -0800 Subject: [PATCH] furnace outputs --- changelog.txt | 5 +++++ data-final-fixes.lua | 8 +++----- info.json | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index 9769a0f..400e400 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.16 +Date: 2025-01-25 + Changes: + - When byproducts are turned off, don't add extra furnace output +--------------------------------------------------------------------------------------------------- Version: 2.0.15 Date: 2025-01-16 Fixes: diff --git a/data-final-fixes.lua b/data-final-fixes.lua index ce079cc..c42e558 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -8,12 +8,10 @@ local util = require("__bzlead__.data-util"); if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then --- If furnaces are treated as furnaces, we need 2 outputs -for i, entity in pairs(data.raw.furnace) do - if entity.result_inventory_size ~= nil and entity.result_inventory_size < 2 and util.contains(entity.crafting_categories, "smelting") then - entity.result_inventory_size = 2 + if util.me.byproduct() then + -- If furnaces are treated as furnaces, we need 2 outputs + util.set_minimum_furnace_outputs("smelting", 2) end -end end if mods["Krastorio2"] then diff --git a/info.json b/info.json index c544525..60e762f 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzlead", - "version": "2.0.15", + "version": "2.0.16", "factorio_version": "2.0", "title": "Lead", "author": "Brevven",