aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2023-10-09 17:27:34 +0900
committerGitHub <noreply@github.com>2023-10-09 10:27:34 +0200
commitab0928b7153db215574f755b84d7c89d6304c1c5 (patch)
tree17ce72bb838a8bfb975f57b50087068a83f983bc /src/main/java
parent379c8273e61ec8abae422a6d31efe99ef49ec8b9 (diff)
downloadGT5-Unofficial-ab0928b7153db215574f755b84d7c89d6304c1c5.tar.gz
GT5-Unofficial-ab0928b7153db215574f755b84d7c89d6304c1c5.tar.bz2
GT5-Unofficial-ab0928b7153db215574f755b84d7c89d6304c1c5.zip
Fix insufficient power result not being persisted (#2328)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/gregtech/api/util/GT_ParallelHelper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/util/GT_ParallelHelper.java b/src/main/java/gregtech/api/util/GT_ParallelHelper.java
index 13fe6290f3..8430f28fa0 100644
--- a/src/main/java/gregtech/api/util/GT_ParallelHelper.java
+++ b/src/main/java/gregtech/api/util/GT_ParallelHelper.java
@@ -405,6 +405,7 @@ public class GT_ParallelHelper {
final int tRecipeEUt = (int) Math.ceil(recipe.mEUt * eutModifier);
if (availableEUt < tRecipeEUt) {
result = CheckRecipeResultRegistry.insufficientPower(tRecipeEUt);
+ return;
}
// Save the original max parallel before calculating our overclocking under 1 tick