[2.0.10] maximum_productivity can be negative

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
PennyJim
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Wed Jan 18, 2023 3:49 am
Contact:

[2.0.10] maximum_productivity can be negative

Post 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

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2467
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.10] maximum_productivity can be negative

Post by boskid »

Thanks for the report. For 2.0.11 i made it only accept values >= 0.

Post Reply

Return to “Resolved Problems and Bugs”