Fair Unlimited productivity

by Mouseas

Removes the +300% productivity cap on recipes where the product recycles into itself. In other words, you can't loop recycling to get unlimited resources, but you can still get more than 4:1 for some recipes.

Tweaks
4 months ago
2.0
232
Manufacturing

b Recipe may have defined 0-length results

4 months ago
Failed to load mods: __fair-unlimited-productivity__/data-final-fixes.lua:14
stack traceback:
    __fair-unlimited-productivity__/data-final-fixes.lua:14: in function 'processRecipe'
    __fair-unlimited-productivity__/data-final-fixes.lua:35: in main chunk

Mods to be disabled:
• fair-unlimited-productivity (1.0.2)

It's possible for a recipe to have defined results = {}, which is non-nil and has a size of 0, which is not greater than 1. Changing the #(recipe.results) > 1 to #(recipe.results) ~= 1 fixes the crash.

P.S. Tested this in conjunction with my own mod (and Frozeta). I can now say that I have seen a technology with a max level of 9 999 999. Considering the engine-limit for productivity is +32767% (2^15 - 1), I'll probably keep anything past that as "infinite".

New response