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 conduit energy distribution #982

Merged

Conversation

CrazyPants
Copy link
Contributor

Description

Fixed a bug that stopped the round robin power distribution working properly in energy conduit networks. All possible receivers would be iterated over even once no energy was left to distribute. As such, the list of receivers would be visited from the beginning every time. This resulted in receivers later in the list from ever receiving energy is there was not enough to supply all.

Checklist

  • [x ] My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you).
  • [x ] I have made corresponding changes to the documentation.
  • [x ] My changes are ready for review from a contributor.

…. This allows limited energy to be distributed around the network when in limited supply
Copy link
Member

@Rover656 Rover656 left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@Rover656 Rover656 merged commit 934e3ca into Team-EnderIO:dev/1.21.1 Jan 21, 2025
1 check passed
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.

2 participants