Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Fluid Task Detection with Stacked Fluid Containers #125

Open
wants to merge 1 commit into
base: 1.12
Choose a base branch
from

Conversation

IntegerLimit
Copy link

This PR fixes Fluid Tasks not working with certain stacked fluid containers, due to the default fluid container logic returning if the stack size is 1. For example, this happens with EnderIO Portable Tanks and GregTech CEu Fluid Cells.

See Nomi-CEu/Nomi-CEu#938 for more information on the problem.

Note: Consuming tries to consume partial amounts of the fluid container when possible (e.g. if consuming 1 Bucket, and the fluid container is a stack of 4, it will try to take away 250mB from each container), but when this is not possible (buckets or GT Universal Cells), it will instead consume all the fluid of all the containers. This may not be the best solution, but I cannot think of a better one, as we cannot just create a new ItemStack.

This has been tested in Nomi-CEu for a while, which contains many non-consumable fluid tasks. For consumable ones, there was testing conducted, when this feature was a mixin. Testing has not been performed on its integration into BQu, but it is the exact same code.

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