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 baryonic perfection voiding one catalyst when recipe fails #3455

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

NotAPenguin0
Copy link
Contributor

The T8 water plant multiblock is supposed to output all unused catalysts at the end of the recipe, whether it fails or succeeds. It also keeps track of an index correctStartIndex to indicate which catalysts were used up, and when none are used this is set to -1. The problem with this is that when outputting unused catalysts, it will consider the catalysts at currentStartIndex and currentStartIndex + 1 to be used for the recipe, which when the recipe fails will ignore the catalyst at index zero and void it.

This PR implements a simple fix for the problem that should stop the plant from voiding unintentionally.

@NotAPenguin0 NotAPenguin0 added the bug fix Fix a bug. Please link it in the PR. label Nov 6, 2024
@NotAPenguin0 NotAPenguin0 requested a review from a team November 6, 2024 11:18
@Dream-Master Dream-Master merged commit 9cdd566 into master Nov 6, 2024
5 checks passed
@Dream-Master Dream-Master deleted the baryonic-matter-fix branch November 6, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Fix a bug. Please link it in the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants