aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2022-12-20 00:16:55 +0800
committerGlease <4586901+Glease@users.noreply.github.com>2022-12-20 22:24:48 +0800
commitc041ee228e321ffd017b57fa789cb5c03709bc3b (patch)
treeeaf933115cafbf292476da23161c7af3e40ab855 /src
parent8a792197b40a5f43513558917c6d9dbc751e49af (diff)
downloadGT5-Unofficial-c041ee228e321ffd017b57fa789cb5c03709bc3b.tar.gz
GT5-Unofficial-c041ee228e321ffd017b57fa789cb5c03709bc3b.tar.bz2
GT5-Unofficial-c041ee228e321ffd017b57fa789cb5c03709bc3b.zip
change strategy on laser overclock failure
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java b/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java
index 59857f48ca..c2233dae40 100644
--- a/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java
+++ b/src/main/java/net/glease/ggfab/mte/MTE_AdvAssLine.java
@@ -609,20 +609,17 @@ public class MTE_AdvAssLine extends GT_MetaTileEntity_ExtendedPowerMultiBlockBas
// then laser overclock if needed
if (!mExoticEnergyHatches.isEmpty()) {
OverclockHelper.OverclockOutput laserOverclock = OverclockHelper.laserOverclock(lEUt, mMaxProgresstime, inputEUt / recipe.mInputs.length, 0.3f);
- if (laserOverclock == null) {
- if (GT_Values.D1) {
- GT_FML_LOGGER.info("Recipe too OP");
- }
- continue;
+ if (laserOverclock != null) {
+ lEUt = laserOverclock.getEUt();
+ mMaxProgresstime = laserOverclock.getDuration();
}
- lEUt = laserOverclock.getEUt();
- mMaxProgresstime = laserOverclock.getDuration();
}
// In case recipe is too OP for that machine
if (mMaxProgresstime == Integer.MAX_VALUE - 1 && lEUt == Integer.MAX_VALUE - 1) {
if (GT_Values.D1) {
GT_FML_LOGGER.info("Recipe too OP");
}
+ mMaxProgresstime = 0;
continue;
}
// correct the recipe duration