Can't fill things to more than max int (ie. mekanism induction matrix)
Fenekhu opened this issue ยท 3 comments
LaserIO version
1.2.0
Minecraft Version
1.18.2
Forge Version
No response
Modpack & Version
Direwolf20 1.18
Do you have optifine installed?
No
Describe the issue
When inserting power into an induction matrix from mekanism, the matrix capped out at 2.14 GFE even though the capacity was 25.60 GFE
Steps to reproduce
- Build Mekanism Induction Matrix with capacity > 2.14 GFE
- Fill with power via LaserIO
- Energy will not go above 2.14 GFE
Expected behaviour
Energy goes above 2.14 GFE
Screenshots
Log files
No response
Additional information
(my guess is)
The inserting energy card is calculating the energy limit with ints (100% of 25.60 GFE = 2,147,... GFE).
EDIT:
After looking at the LaserIO code, Forge API, and Mekanism, it seems this isn't as simple of an issue as "don't cast it to an int" because forge IEnergyStorage uses ints, while mekanism uses it's own IEnergyContainer that uses FloatingLong
s.
The issue here is that Mekanism is improperly using the Forge Energy API and needs to stop. File the bug with them and tell them to stop breaking the energy system that literally every other mod uses.
Despite @KingLemming's rantings this bug is now resolved, thank you for the report :)