Skip to content

Floor the available capacity GetFromConverters() to the nearest multiple of the conversion ratio#144

Open
BigBarza wants to merge 2 commits intoVanilla-Expanded:mainfrom
BigBarza:main
Open

Floor the available capacity GetFromConverters() to the nearest multiple of the conversion ratio#144
BigBarza wants to merge 2 commits intoVanilla-Expanded:mainfrom
BigBarza:main

Conversation

@BigBarza
Copy link

This ensures that a pipe network's storage can actually take one item's worth of resource before accepting it from a converter.

What happens otherwise is that the resource is replenished anyway, but the stack is not reduced, so as an example, if there's a full chemfuel tank, and chemfuel sitting on a drain, no more chemfuel will be consumed but decimal amounts will still be added to the network and connected generators will run for free.

…tio or 0

This prevents resource converters from magically producing decimal amounts of a resource over and over without consuming the item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant