EarendelDevelopers / factorio-mods

This is a public repository for tracking issues with Earendel's factorio mods.
19 stars 3 forks source link

aai-vehicles-miner AAI Vehicles: Miner - Fluid mining productivity is broken #309

Closed pingpong2011 closed 4 months ago

pingpong2011 commented 1 year ago

0.6.4 Fluid mining productivity can only give at most 1 cycle:

Around line 308:

local function insert_products(miner, products, multiplier)
    --go through products and process
    if not products then return end
    for _, product in pairs(products) do
        if product.type == "fluid" then
            -- fluid stack can be multiplied because random has been averaged
            local fluid_stack = get_fluid_stack_from_product(product)
            fluid_stack.amount = fluid_stack.amount * multiplier
            insert_fluid(miner, get_fluid_stack_from_product(product))

should be:

local function insert_products(miner, products, multiplier)
    --go through products and process
    if not products then return end
    for _, product in pairs(products) do
        if product.type == "fluid" then
            -- fluid stack can be multiplied because random has been averaged
            local fluid_stack = get_fluid_stack_from_product(product)
            fluid_stack.amount = fluid_stack.amount * multiplier
            insert_fluid(miner, fluid_stack)

when fluid barreling is patched, productivity works.