Not too bad for the changes needed to update it, just needs to actually be applied.
In data.lua around ::62, needs a "real" pipe connection now
pump.energy_source = {
type = "fluid",
fluid_box = {
volume = 100,
production_type = "input",
pipe_connections = {
{
flow_direction = "input",
connection_type = "linked",
linked_connection_id = 1,
hide_connection_info = true,
}
},
filter = pump_fluid.name,
}
}
In control.lua ...
... around ::68, can't hit the fluidbox array directly anymore
struct.pump.set_fluid(2, {
name = "pump-with-adjustable-flow-rate",
amount = 100,
temperature = struct.speed,
})
...around ::78, both fluidbox access and the filter doesn't get copied to the entity any more
local proto = entity.get_fluid_box_prototype(2)
assert(proto)
assert(proto.filter.name == "pump-with-adjustable-flow-rate")