Overflow Error in Advanced Information Panel
janouna opened this issue ยท 4 comments
I have an advanced information panel showing the fluid amount of a very large tank (~65 million mb). Whenever it's filled more than about 30% (20 million fill, 45 million free), the fill percentage goes negative (starts at around -24%), and then starts counting up towards zero percent as the tank gets more full. Seems like an overflow error in the division.
Nuclear Control version 2.1.2a
Minecraft version 1.7.10
Yo @janouna , is there any console information?
I just watched the percentage go negative, but the console didn't show anything. I also looked through the console at startup but everything related to Nuclear Control looked normal (mostly registry adds).
Reason for that is because you made a derp bug...
You incrment before you decrement. Which is at these high numbers not a good idea...