My mod uses a modified offshore pump to output crude oil. The entity has been deep copied from base, and had its fluid type changed to crude-oil.
Code: Select all
local offshorecrudeoil = table.deepcopy(data.raw["offshore-pump"]["offshore-pump"])
offshorecrudeoil.name = "offshore-crude-oil-pump"
offshorecrudeoil.fluid = "crude-oil"
offshorenofluid.pumping_speed = 20
When the offshore pump is placed it has a water output. Placing a pipe after it then changes the output to crude-oil.
This allows the pump to be connected up to a water network, despite being a crude-oil output. The entire fluid network then shows crude-oil as the name but with blue fluid inside. When a new pipe is placed, it then changed the entire network to water, including the offshore pump, which should only output crude-oil.
Fix
The offshore pump should respect and lock to its own fluid value set in data.lua.
Initial Placement, showing water as output.
Added Pipe to output. Changes fluid to Crude-Oil.
Offshore Crude Oil Pump connected to water network, showing fluid name as Crude-Oil, fluid colour as blue.
Added Pipe to network, now showing name as water, has changed Offshore Crude Oil Pump to water output.
Link to Mod : https://www.dropbox.com/s/0xvdecrzh8p1n ... 0.zip?dl=0