From 45486340c32aef88ac19c5ea6159c85edf24bc7e Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 12 Feb 2022 00:04:10 -0800 Subject: [PATCH] fuel with k2 --- changelog.txt | 1 + prototypes/entity/foundry.lua | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index f6625e4..88562ea 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Version: 0.0.12 Date: 2022-02-12 Fixes: + - Processed fuel works in foundries with K2 + AAI Industry both enabled, once again. - Refractory recipes: Productivity no longer applies to refractories --------------------------------------------------------------------------------------------------- Version: 0.0.11 diff --git a/prototypes/entity/foundry.lua b/prototypes/entity/foundry.lua index 09537f7..f942b5b 100644 --- a/prototypes/entity/foundry.lua +++ b/prototypes/entity/foundry.lua @@ -1,6 +1,10 @@ require("util") local futil = require("data-util") +local fuel = {"chemical"} +if mods.Krastorio2 then table.insert(fuel, "vehicle-fuel") end +if mods["aai-industry"] then table.insert(fuel, "processed-chemical") end + data:extend({ { type = "assembling-machine", @@ -32,7 +36,7 @@ data:extend({ energy_source = { type = "burner", - fuel_category = "chemical", + fuel_categories = fuel, effectivity = 1, emissions_per_minute = 8, fuel_inventory_size = 1,