Merge pull request #345 from Vaern/master

fixed very glaring rounding error
This commit is contained in:
HbmMods 2021-11-30 09:47:19 +01:00 committed by GitHub
commit 5d8b186c29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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