diff options
author | joegnis <joegnis.yifan@gmail.com> | 2024-09-04 06:53:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 10:53:16 +0000 |
commit | ebefc70b6d41c19c61fc21f548a942a0331f7fb6 (patch) | |
tree | b73c6844fcc8a652c83fb61c8512fa3e87cc1d0a /src/main/java/tectech/thing/metaTileEntity | |
parent | ead1385464310f4fddda2c5566d541c187d659fc (diff) | |
download | GT5-Unofficial-ebefc70b6d41c19c61fc21f548a942a0331f7fb6.tar.gz GT5-Unofficial-ebefc70b6d41c19c61fc21f548a942a0331f7fb6.tar.bz2 GT5-Unofficial-ebefc70b6d41c19c61fc21f548a942a0331f7fb6.zip |
Fixes #17207 (#3041)
Changed methods in OverclockCalculator:
- setEUtDiscount
- setSpeedBoost
- setHeatDiscountMultiplier
Most of other changes are directly related to them.
Adds a unit test.
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/tectech/thing/metaTileEntity')
-rw-r--r-- | src/main/java/tectech/thing/metaTileEntity/multi/godforge_modules/MTEBaseModule.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/tectech/thing/metaTileEntity/multi/godforge_modules/MTEBaseModule.java b/src/main/java/tectech/thing/metaTileEntity/multi/godforge_modules/MTEBaseModule.java index be81bad80e..b403dba74f 100644 --- a/src/main/java/tectech/thing/metaTileEntity/multi/godforge_modules/MTEBaseModule.java +++ b/src/main/java/tectech/thing/metaTileEntity/multi/godforge_modules/MTEBaseModule.java @@ -70,8 +70,8 @@ public class MTEBaseModule extends TTMultiblockBase { protected int overclockHeat = 0; protected int maximumParallel = 0; protected int plasmaTier = 0; - protected float processingSpeedBonus = 0; - protected float energyDiscount = 0; + protected double processingSpeedBonus = 0; + protected double energyDiscount = 0; protected long processingVoltage = 2_000_000_000; protected BigInteger powerTally = BigInteger.ZERO; protected long recipeTally = 0; @@ -155,19 +155,19 @@ public class MTEBaseModule extends TTMultiblockBase { return maximumParallel; } - public void setSpeedBonus(float bonus) { + public void setSpeedBonus(double bonus) { processingSpeedBonus = bonus; } - public float getSpeedBonus() { + public double getSpeedBonus() { return processingSpeedBonus; } - public void setEnergyDiscount(float discount) { + public void setEnergyDiscount(double discount) { energyDiscount = discount; } - public float getEnergyDiscount() { + public double getEnergyDiscount() { return energyDiscount; } @@ -199,8 +199,8 @@ public class MTEBaseModule extends TTMultiblockBase { isMagmatterCapable = isCapable; } - public float getHeatEnergyDiscount() { - return isUpgrade83Unlocked ? 0.92f : 0.95f; + public double getHeatEnergyDiscount() { + return isUpgrade83Unlocked ? 0.92 : 0.95; } public void setPlasmaTier(int tier) { |