Page 1 of 1

[2.0.10] maximum_productivity can be negative

Posted: Thu Oct 24, 2024 1:00 am
by PennyJim
Setting a recipe to have a maximum_productivity a negative value will not error on startup.

Playing around with it, all it seems to do is make the productivity value underflow, and proportionally lower. It seems to have no negative consequences besides displaying this underflow to the user. It neither produces extra products, or even reduce product produced.

You can also set it to 0, which can be considered invalid behavior, but there are be arguments for keeping that.

The solution is to limit the range greater than (or equal to?) zero

Re: [2.0.10] maximum_productivity can be negative

Posted: Thu Oct 24, 2024 8:56 pm
by boskid
Thanks for the report. For 2.0.11 i made it only accept values >= 0.