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

Zero initial EUt of multiplied parallel logic #1429

Merged
merged 2 commits into from
Jan 25, 2023

Conversation

xeals
Copy link
Contributor

@xeals xeals commented Jan 16, 2023

What

As in #1120, parallel logic sometimes has an initial EUt in its copied recipe map, which results in higher energy consumption than intended.

Implementation Details

Ensure that the EUt of the copied recipe map is 0.

Outcome

Washing/macerating 2 ores will not consume the energy cost of 3 recipes.
Fixes (properly): GregTechCEu/gregicality-multiblocks#19

@ALongStringOfNumbers ALongStringOfNumbers added the type: bug Something isn't working label Jan 17, 2023
Copy link
Contributor

@LAGIdiot LAGIdiot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After re-checking the logic it looks sound.

@ALongStringOfNumbers
Copy link
Contributor

We do something similar down below in the AppendItems method, although there we also clear the duration, as some recipes have pre-determined durations as well. So I am trying to think if we also need to clear the duration here. We should also try and update the tests to catch this error

@ALongStringOfNumbers ALongStringOfNumbers merged commit e33d0e1 into GregTechCEu:master Jan 25, 2023
ghzdude pushed a commit to ghzdude/GregTechCEu that referenced this pull request Feb 6, 2023
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.

3 participants