Skip to content

Split insertion and extraction value tracking in pipe stats#1247

Merged
Technici4n merged 1 commit intoAztechMC:1.21.xfrom
rlnt:energy-stats-fix
Mar 4, 2026
Merged

Split insertion and extraction value tracking in pipe stats#1247
Technici4n merged 1 commit intoAztechMC:1.21.xfrom
rlnt:energy-stats-fix

Conversation

@rlnt
Copy link
Copy Markdown
Contributor

@rlnt rlnt commented Feb 26, 2026

This pull request fixes a niche bug in how the pipe statistics tracking works.

If an extraction and an insertion don't happen in the same tick, the effective flow rate is doubled because both operations are tracked as individual steps. My fix separates the tracking of the extraction and the insertion, and takes the higher value for the statistics value.

The bug can be reproduced by a machine that only uses energy every 2 ticks.
A more in-depth discussion about this issue can be found on the Discord.

@Technici4n Technici4n merged commit 1d6726b into AztechMC:1.21.x Mar 4, 2026
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