this one brain cell realized it's dividing by zero. if a recipe produces 0-5 items, divide results by product/ingredient count breaks this section of code
https://lua-api.factorio.com/latest/concepts.html#Product claims that amount_min
has no effect if amount
is specified, uh...
in any case, whether this mod works accurately on amount ranges or not, you can at least stop it from crashing by replacing round(count/result.amount)
with ( result.amount == 0 and 1001001 or round(count/result.amount) )
in rc.lua
yeah using a 1001001 multiplier as an error code is sludge