EntityPrototype#emissions_per_second

Place to report issues and suggest improvements to the API documentation.
pwhk
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Mar 25, 2016 11:13 am
Contact:

EntityPrototype#emissions_per_second

Post by pwhk »

does not appear to be correct. All vanilla lua files uses `emissions_per_minute`, but the documentation has `emissions_per_second`, not `emissions_per_minute`
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 331
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Re: EntityPrototype#emissions_per_second

Post by BraveCaperCat »

It was like this in 1.1, maybe this is not a bug?
Also, the description claims it's only used for trees and fires (in the base game) so probably a separate (but very similar) thing.
Creator of multiple mods, including Quality Assurance - My most popular one. Expect multiple modding-related questions, answers and other posts.
pwhk
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Mar 25, 2016 11:13 am
Contact:

Re: EntityPrototype#emissions_per_second

Post by pwhk »

I checked the vanilla files again and find that all `emissions_per_minute` are actually under `energy_source`. The BaseEnergySource type does have the correct doc.
So it appears that `emissions_per_second` under EntityPrototype is unused by vanilla...
Just odd that we have both emissions_per_second and emissions_per_minute in different places.
curiosity
Filter Inserter
Filter Inserter
Posts: 484
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: EntityPrototype#emissions_per_second

Post by curiosity »

pwhk wrote: Sat Nov 16, 2024 12:16 pm I checked the vanilla files again and find that all `emissions_per_minute` are actually under `energy_source`. The BaseEnergySource type does have the correct doc.
So it appears that `emissions_per_second` under EntityPrototype is unused by vanilla...
Just odd that we have both emissions_per_second and emissions_per_minute in different places.
Then look again. And they mean different things, just like the docs tell you.
Post Reply

Return to “Documentation Improvement Requests”