Skip to content

Conversation

@vrejhead
Copy link
Contributor

@vrejhead vrejhead commented Mar 9, 2025

What

remembered seeing this kila tier code when doing my multiblock pattern rework, now it should be better

Implementation Details

instead using a long array with the battery values it uses 2 longs, one is in base (1 << 63), this theorectically means it can only hold up to (1 << 126) - 1, but be real
also improves random tests for the power substation

Outcome

biginteger but mutable

Additional Information

nothing

Potential Compatibility Issues

none, probably if the legacy nbt code works

@vrejhead vrejhead requested a review from a team as a code owner March 9, 2025 08:41
@Zorbatron Zorbatron added the type: refactor Suggestion to refactor a section of code label Apr 2, 2025
Copy link
Member

@TechLord22 TechLord22 left a comment

Choose a reason for hiding this comment

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

Just some minor formatting. Looks good.

@TechLord22 TechLord22 merged commit 9681c3b into GregTechCEu:master May 20, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants