[2.0.20] Foundries swapping between copper and iron recipes can sometimes backspill into the feeding pipes
Posted: Sun Nov 24, 2024 6:07 pm
I am using a setup like this where foundries produce both iron and copper products, being fed by 2 pipes on each side.
The result is that if my iron/copper input pipes happened to be empty when the recipe swap was happening, it could clog the whole system.
This ONLY happens if the pipeline is empty.
I have attached a blueprint that makes it incredibly easy to replicate this. Simply let the machine run, and keep flushing either the iron or the copper pipeline. If the machine swaps recipes while the pipeline is empty, it will backspill and clog the whole system.
I would assume this is a bug because
A.) They are input pipes, not two way.
B.) The machine seems to have no issue "flushing" liquids to nothingness if you swap recipes with liquid in them but no empty attached pipeline for it to go (You can confirm this by attaching an infinity copper pipe to the copper tank, the machine will still swap recipes just fine, even if it has nowhere to send the liquid copper in it).
If leftover liquids don't clog machines like solid ingredients do, I don't see why they should backspill into the pipes.
An issue that I had been sometimes noticing is my copper pipe would be randomly contaminated with iron and vice versa, and I couldn't figure out how or why this was happening. Then I realized, if a foundry swaps recipes with leftover molten iron/copper inside it, AND there is an empty pipe attached to it, it will backspill into that pipe. The result is that if my iron/copper input pipes happened to be empty when the recipe swap was happening, it could clog the whole system.
This ONLY happens if the pipeline is empty.
I have attached a blueprint that makes it incredibly easy to replicate this. Simply let the machine run, and keep flushing either the iron or the copper pipeline. If the machine swaps recipes while the pipeline is empty, it will backspill and clog the whole system.
I would assume this is a bug because
A.) They are input pipes, not two way.
B.) The machine seems to have no issue "flushing" liquids to nothingness if you swap recipes with liquid in them but no empty attached pipeline for it to go (You can confirm this by attaching an infinity copper pipe to the copper tank, the machine will still swap recipes just fine, even if it has nowhere to send the liquid copper in it).
If leftover liquids don't clog machines like solid ingredients do, I don't see why they should backspill into the pipes.