Advanced Peripherals

Advanced Peripherals

29M Downloads

Mekanism Induction Matrix getEnergy() and getEnergyCapacity() truncated in high values.

Roukurai opened this issue ยท 3 comments

commented

Descripe

Calling the peripheral's .getEnergy() or .getEnergyCapacity() return value a capped value of 2147483647 making it unable to determine current energy levels or capacity above this.

2021-07-14_09 19 36
2021-07-14_09 19 33

Steps to reproduce

Attach Computer to induction matrix size.
Have either more energy or more capacity than 2147483647 and call the respecting method.
Value will be capped at 2147483647.

Version

0.6.7b (Latest)

Minecraft, Forge and maybe other related mods versions

31.1.31 forge minecraft 1.16.5

Screenshots or Videos

No response

Crashlog/log

No response

commented

How did you wrap the peripheral? You need to use a peripheral proxy. See https://docs.srendi.de/peripheralproxy/getstarted/

commented

As tip, in 0.7 you don't need a peripheral proxy anymore. You can directly connect the computer to supported blocks.

commented

Thanks, did not know that was used for it.