furnace outputs

This commit is contained in:
Brevven 2025-01-24 18:05:58 -08:00
parent a62c97d973
commit 988e3a51f3
3 changed files with 9 additions and 6 deletions

View file

@ -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:

View file

@ -8,13 +8,11 @@ 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
util.replace_ingredient("rifle-magazine", "iron-plate", "lead-plate")

View file

@ -1,6 +1,6 @@
{
"name": "bzlead",
"version": "2.0.15",
"version": "2.0.16",
"factorio_version": "2.0",
"title": "Lead",
"author": "Brevven",