[Bug]: New FE Angel Rings stop working when Flux Networks' Controller goes above 2.1 billion or so
Khaosina opened this issue ยท 1 comments
Disclosure: I initially found this bug while playing the FTB Presents Direwolf20 1.18 modpack. This bug has also been reported to the Angel Rings issues tracker and has had a fix rolled out for it already, but I am still able to reproduce it in-game even with its newest version. I'm just reporting it here as well to try and see if it's a problem with Flux Networks itself.
Describe the bug
As the title says, the newly-added FE-powered Angel Rings stop working when a Flux Networks' Controller goes above 2.1 billion or so. I can't see the exact number but I'm guessing it's the 32 bit signed integer limit of 2,147,483,647.
Every 5-10 ticks or so, the Controller sends a full Resonant Angel Ring's worth of Power (16 million FE) to the Ring, as if the Ring had used all of its power in that small amount of time.
Steps to reproduce
- Add a Flux Plug to a high transfer power source or power storage (such as an Induction matrix or Creative Energy Cube from Mekanism).
- Place down a Flux Controller.
- Create/use a Flux network.
- Set both the Plug and Controller to Bypass Limit. Controller will quickly go above 2.1 billion FE or so.
- Ring loses power once the Controller's buffer goes above 2.1 billion FE and does not allow flight anymore.
- Turn off Bypass Limit on Controller to fly again.
Expected behaviour
Angel Ring and Flux Networks should behave normally and keep the Ring activated while Bypass Limit is activated on the Flux Controller.
Screenshots
Flux Controller with more than 3 billion FE buffer
The exact frame the click registered, from a video recorded at 60 fps, the Flux Controller sends 16 million FE somewhere (presumably to the Resonant Angel Ring that has a 16 million FE capacity)
10 frames later, from the same video, Controller sends another 16 million FE somewhere
Additional information
Tested it with all other FE-powered Angel Rings, same result but just with different output numbers on the Controller due to the different power capacities of each of the Rings.
Also tested with the Flux Plug attached to a Quantum Entagoloporter, same results.
https://github.com/DenisMasterHerobrine/AngelRing/blob/1.18.2-2.x/src/main/java/dev/denismasterherobrine/angelring/item/utils/EnergyItem.java#L20
Obviously, it may overflow here, please report it to Angel Ring.