Fix multiblock energy storage charging when reaching int.max #330
No reviewers
Labels
No labels
Area-Assets
Area-Backend
Area-Conduits
Area-Datapacks
Area-Lang
Area-Mod Compat
Area-Parity
Area-Rendering
Good first issue
MC-1.19.2
MC-1.20.1
MC-1.20.4
MC-1.20.6
MC-1.21
MC-1.21.1
Modtoberfest
P-0-High
P-1-Medium
P-2-Low
Status-Awaiting Response
Status-Behind-Flag
Status-Blocked
Status-Cannot Reproduce
Status-Duplicate
Status-Help Wanted
Status-Incomplete Report
Status-Invalid
Status-Needs LTS Backport
Status-Needs Updating
Status-Stale
Status-To Implement
Status-Triage
Status-Wontfix
Status-Wontmerge
Type-Backport
Type-Bug
Type-Documentation
Type-Enhancement
Type-Question
Type-RFC
Type-Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Team-EnderIO/EnderIO#330
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "energy-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Small fix to make multiblock capacitor accept more than int.max energy.
Also small optimisation to code extracting/receiving energy - but I believe this code overall could use more love... But I don't personally use enderio much for it and it requires bigger work so not motivated myself...
Currently every operation on multiblock copies the data from graph, shuffles it, and iterates over all elements (well now not always all), this will make these multiblock structures to cause quite high load, especially when they are big and empty/full, as each operation will repeat every tick doing nothing.
Closes #302
Checklist:
I'm a bit confused by the milestones now, the issue this PR fixes is in 6.0, yet the PR is in 6.1? @Rover656
Milestones are currently being shifted around, this one should probably continue to target 6.0, I'll fix this :) Cheers
Just so you know; I'm not forgetting about this one either, I'd just like to let agnor decide if these changes make sense, as I didn't have any part in how this system works :)
works, I wanted to do some performance improvements for cap banks, but this is a good fix for the time being, thanks a lot