mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Merge pull request #363 from TehTemmie/patch-2
Fixed rounding errors with large reactor
This commit is contained in:
commit
6df784986b
@ -374,7 +374,7 @@ public class TileEntityMachineReactorLarge extends TileEntity
|
||||
|
||||
private void generate() {
|
||||
|
||||
int consumption = (maxFuel / cycleDuration) * rods / 100;
|
||||
int consumption = (int) (((double)maxFuel / cycleDuration) * rods / 100);
|
||||
|
||||
if(consumption > fuel)
|
||||
consumption = fuel;
|
||||
@ -385,7 +385,7 @@ public class TileEntityMachineReactorLarge extends TileEntity
|
||||
fuel -= consumption;
|
||||
waste += consumption;
|
||||
|
||||
int heat = (consumption / size) * type.heat / fuelMult;
|
||||
int heat = (int) (((double)consumption / size) * type.heat / fuelMult);
|
||||
|
||||
this.coreHeat += heat;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user