aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r--src/main/java/gregtech/api/util/GT_OverclockCalculator.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/gregtech/api/util/GT_OverclockCalculator.java b/src/main/java/gregtech/api/util/GT_OverclockCalculator.java
index 1b8748237d..e73232096c 100644
--- a/src/main/java/gregtech/api/util/GT_OverclockCalculator.java
+++ b/src/main/java/gregtech/api/util/GT_OverclockCalculator.java
@@ -393,7 +393,7 @@ public class GT_OverclockCalculator {
double machinePowerTier = calculateMachinePowerTier();
overclockCount = calculateAmountOfNeededOverclocks(machinePowerTier, recipePowerTier);
- if (recipeVoltage <= GT_Values.V[0]) {
+ if (!amperageOC) {
overclockCount = Math.min(overclockCount, calculateRecipeToMachineVoltageDifference());
}
if (overclockCount < 0) {
@@ -463,19 +463,19 @@ public class GT_OverclockCalculator {
/**
* Calculates the amount of overclocks needed to reach 1 ticking
- *
+ *
* Here we limit "the tier difference overclock" amount to a number
* of overclocks needed to reach 1 tick duration, for example:
- *
+ *
* recipe initial duration = 250 ticks (12,5 seconds LV(1))
* we have LCR with IV(5) energy hatch, which overclocks at 4/4 rate
- *
+ *
* log_4 (250) ~ 3,98 is the number of overclocks needed to reach 1 tick
- *
+ *
* to calculate log_a(b) we can use the log property:
* log_a(b) = log_c(b) / log_c(a)
* in our case we use natural log base as 'c'
- *
+ *
* as a final step we apply Math.ceil(),
* otherwise for fractional nums like 3,98 we will never reach 1 tick
*/