mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixed very glaring rounding error
goddamn how did i miss that
This commit is contained in:
parent
c5e0023c07
commit
cbca9cdb11
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user