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 - can't barrel fluids #307

Closed pingpong2011 closed 4 months ago

pingpong2011 commented 1 year ago

In my version 0.6.4 miners can't mine fluids, but store fluid resources.

The bug is on line 28 of control.lua:

function Prototypes.recipe_prototype(name)
  if not Prototypes.recipe_prototypes[name] then
    Prototypes.recipe_prototypes[name] = game.recipe_prototypes[name]
  end
  return Prototypes.entity_prototypes[name]   -- <--- Line 28
end

...it should be recipe_prototypes. This alone causes fluids to never fill barrels or canisters.