function request_depot:push_fluid_hack()
if self.mode ~= request_mode.fluid then return end
local box = self:get_output_fluidbox()
if not box or box.amount <= 0 then return end
local connections = self.entity.fluidbox.get_connections(2)
if not connections then return end
for _, pipe in pairs(connections) do
for i = 1, #pipe do
local inserted = pipe.owner.insert_fluid{
name = box.name,
amount = box.amount,
temperature = box.temperature
}
if inserted > 0 then
box.amount = box.amount - inserted
if box.amount <= 0 then
self:set_output_fluidbox(nil)
return
end
self:set_output_fluidbox(box)
end
end
end
end