diff options
author | Sampsa <69092953+S4mpsa@users.noreply.github.com> | 2024-09-14 21:08:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-14 20:08:07 +0200 |
commit | 0abe297bf83e9b955ae847f754c2523bd7087627 (patch) | |
tree | 1a897d30f1cd437e8bdfe3308618edd8a65a87b2 /src | |
parent | 3658297f9b7566e9a82f55e6143f519f2c82840f (diff) | |
download | GT5-Unofficial-0abe297bf83e9b955ae847f754c2523bd7087627.tar.gz GT5-Unofficial-0abe297bf83e9b955ae847f754c2523bd7087627.tar.bz2 GT5-Unofficial-0abe297bf83e9b955ae847f754c2523bd7087627.zip |
Fix antimatter math to use floats instead of integer division (#3188)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/goodgenerator/blocks/tileEntity/AntimatterForge.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/goodgenerator/blocks/tileEntity/AntimatterForge.java b/src/main/java/goodgenerator/blocks/tileEntity/AntimatterForge.java index 0fa1a539f3..b078a499a7 100644 --- a/src/main/java/goodgenerator/blocks/tileEntity/AntimatterForge.java +++ b/src/main/java/goodgenerator/blocks/tileEntity/AntimatterForge.java @@ -517,8 +517,8 @@ public class AntimatterForge extends MTEExtendedPowerMultiBlockBase<AntimatterFo fluidConsumptions[MAGNETIC_ID] = (int) Math.ceil(Math.pow(totalAntimatterAmount, 0.5)); fluidConsumptions[GRAVITY_ID] = (int) Math.ceil(Math.pow(totalAntimatterAmount, 0.5)); - fluidConsumptions[CONTAINMENT_ID] = (int) Math.ceil(Math.pow(totalAntimatterAmount, 2 / 7)); - fluidConsumptions[ACTIVATION_ID] = (int) Math.ceil(Math.pow(totalAntimatterAmount, 1 / 3)); + fluidConsumptions[CONTAINMENT_ID] = (int) Math.ceil(Math.pow(totalAntimatterAmount, 2.0f / 7.0f)); + fluidConsumptions[ACTIVATION_ID] = (int) Math.ceil(Math.pow(totalAntimatterAmount, 1.0f / 3.0f)); for (int i = 0; i < modifiers.length; i++) { modifiers[i] = 0.0f; |