[0.14.22] setting resource.x.infinite=true, items/s is wrong
Posted: Thu Feb 23, 2017 12:36 am
I am using the "EndlessResourcesWithFullYield" mod, which is useful for testing base designs without miners running out of ore.
However, the mod makes electric miners show wrong "Expected resources" when hovering over an electric miner with the mouse. For example, it can show "248/s". The actual output is normal, not changed by the mod, and most definitely not 248/s.
The wrong display in electric miners is caused by setting "data.raw.resource[k].infinite = true" in the mod. The whole code of the "EndlessResourcesWithFullYield" is:
The fix seems easy enough - just don't change the "Expected resources" display of electric miners just because infinite=true.
However, the mod makes electric miners show wrong "Expected resources" when hovering over an electric miner with the mouse. For example, it can show "248/s". The actual output is normal, not changed by the mod, and most definitely not 248/s.
The wrong display in electric miners is caused by setting "data.raw.resource[k].infinite = true" in the mod. The whole code of the "EndlessResourcesWithFullYield" is:
Code: Select all
for k, v in pairs(data.raw.resource) do
data.raw.resource[k].infinite = true
data.raw.resource[k].minimum = 100
data.raw.resource[k].normal = 100
end