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

Multiblock Energy Input Changes #1741

Merged
merged 3 commits into from
May 31, 2023
Merged

Multiblock Energy Input Changes #1741

merged 3 commits into from
May 31, 2023

Conversation

TechLord22
Copy link
Member

What

This PR makes changes to how multiblocks handle energy inputs.

First, EnergyContainerList has been modified to better handle its voltage and amperage. These changes are better explained and reflected in the tests and implementation added with this PR, than can be done in text.

Next, multiblock maximum energy inputs have been reduced from 3 to 2. This is due to the above changes, where adding a 3rd energy hatch does not change the tier of the multiblock. For example, two 2A LV inputs make an MV multiblock. But three 2A LV hatches is only 1.5A of MV, which is still considered MV for recipe logic. This applies to both overclocking and recipe search.

The Processing Array is a special case for the above energy hatch constraint, and it has been changed to have no upper maximum, to allow further recipe overclocking.

Implementation Details

All of the test cases and scenarios for voltage and amperage combinations should be covered in EnergyContainerList, but some may have slipped through.

Outcome

Fixes inconsistencies with multiblock overclocking and recipe search with multiple, potentially mixed energy hatches.

Potential Compatibility Issues

EnergyContainerList will no longer dynamically update Input/Output Voltage and Amperage when the contents of the list changes. This should not affect anything within the base mod, but may affect addons using it.

Setups using more than 2 energy hatches will break, as multiblock structures will unform.

@TechLord22 TechLord22 added the type: bug Something isn't working label May 4, 2023
@TechLord22 TechLord22 merged commit 78205b2 into master May 31, 2023
@TechLord22 TechLord22 deleted the tc-energy-input branch May 31, 2023 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants