fixed very glaring rounding error

goddamn how did i miss that
This commit is contained in:
Vaern 2021-11-28 13:48:48 -08:00
parent c5e0023c07
commit cbca9cdb11

View File

@ -225,7 +225,7 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IF
// function of SHS produced per tick
// heat% * 64 * 10 (should get rid of any rounding errors)
int Water = (int) ((float)heat / maxHeat) * 64;
int Water = (int) (((float)heat / maxHeat) * 64);
int Steam = Water * 10;
water.setFill(water.getFill() - Water);