Closed Miner239 closed 4 days ago
GTM 1.5.3
1.20.1
EMI
Singleplayer
No
Monifactory
On full temperature and throttle, Large Tungstensteel Boiler produces 6400mB/t steam
Boiler displays negative production rate once it reaches over 4294mB/t, no steam made and no water drained when production rate is negative
Caused by overflow in calculation in this line: https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/steam/LargeBoilerMachine.java#L120
6400 100 5 * 1000 = 3 200 000 000 > 2 147 483 647
Checked for existing issues
Tested latest version
GregTech CEu Version
GTM 1.5.3
Minecraft Version
1.20.1
Recipe Viewer Installed
EMI
Environment
Singleplayer
Cross-Mod Interaction
No
Other Installed Mods
Monifactory
Expected Behavior
On full temperature and throttle, Large Tungstensteel Boiler produces 6400mB/t steam
Actual Behavior
Boiler displays negative production rate once it reaches over 4294mB/t, no steam made and no water drained when production rate is negative
Steps to Reproduce
Additional Information
Caused by overflow in calculation in this line: https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/common/machine/multiblock/steam/LargeBoilerMachine.java#L120
6400 100 5 * 1000 = 3 200 000 000 > 2 147 483 647