rP24963 introduced a way to set the amount of a resource, such that renaming entities would keep their current amount.
However, this did not account for Infinite resources, like fields, who mess up the calculation.
Just don't change Infinity values is the solution chosen here.