Hello, I'm playing through the game with this mod and I really like it so far.
I also have Flow Control and FluidMustFlow installed, and I noticed that the items are displayed in the wrong group.
I created a small mod for myself that fixes this. Maybe you would like to use it too. Feel free to use my code if you want.
data.lua
-- Änderungen für Flow Control
if mods["Flow Control"] then
if data.raw.item["pipe-junction"] then
data.raw.item["pipe-junction"].subgroup = "pipes"
end
if data.raw.item["pipe-elbow"] then
data.raw.item["pipe-elbow"].subgroup = "pipes"
end
if data.raw.item["pipe-straight"] then
data.raw.item["pipe-straight"].subgroup = "pipes"
end
end
-- Änderungen für FluidMustFlow
if mods["FluidMustFlow"] then
-- Erstelle Subgroup nur wenn die Mod aktiv ist
data:extend({
{
type = "item-subgroup",
name = "FluidMustFlow",
group = "fluid-handling",
order = "z"
}
})
-- Verschiebe Items mit Sicherheitsprüfung
local fluidMustFlowItems = {
"duct", "duct-cross", "duct-curve", "duct-exhaust",
"duct-intake", "duct-long", "duct-small", "duct-t-junction",
"duct-underground", "non-return-duct"
}
for _, itemName in pairs(fluidMustFlowItems) do
if data.raw.item[itemName] then
data.raw.item[itemName].subgroup = "FluidMustFlow"
end
end
end
info.json
"dependencies": ["base >= 2.0.0", "? space-age >= 2.0", "? Flow Control >= 3.2.3", "factorioplus >= 2.5.1", "? FluidMustFlow >=1.4.4" ]