aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/goodgenerator/blocks
diff options
context:
space:
mode:
authorYang Xizhi <60341015+GlodBlock@users.noreply.github.com>2022-04-22 23:27:40 +0800
committerGitHub <noreply@github.com>2022-04-22 17:27:40 +0200
commitc7d62679bf52955e63cb40b1ce0e7fc47c710969 (patch)
tree7b1cfe36bf19019ab8c6e3c7c566eb1125feb258 /src/main/java/goodgenerator/blocks
parentb744a9d1ebab887e42cb3f9f61d4784ccfc1f1d3 (diff)
downloadGT5-Unofficial-c7d62679bf52955e63cb40b1ce0e7fc47c710969.tar.gz
GT5-Unofficial-c7d62679bf52955e63cb40b1ce0e7fc47c710969.tar.bz2
GT5-Unofficial-c7d62679bf52955e63cb40b1ce0e7fc47c710969.zip
use the correct max input power method (#34)
otherwise it will try to drain more energy than it should
Diffstat (limited to 'src/main/java/goodgenerator/blocks')
-rw-r--r--src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java b/src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java
index 8ead6373c0..3a33174be5 100644
--- a/src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java
+++ b/src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java
@@ -220,7 +220,7 @@ public class PreciseAssembler extends GT_MetaTileEntity_TooltipMultiBlockBase_EM
if (tRecipe != null) {
this.mEfficiency = (10000 - (this.getIdealStatus() - this.getRepairStatus()) * 1000);
this.mEfficiencyIncrease = 10000;
- long fullInput = getMaxInputEnergy();
+ long fullInput = getMaxInputEnergy_EM();
int pall = handleParallelRecipe(tRecipe, inputFluids, getStoredItemFromHatch(bus), (int) Math.min((long) Math.pow(2, 4 + casingTier), fullInput / tRecipe.mEUt));
if (pall <= 0) continue;
Pair<ArrayList<FluidStack>, ArrayList<ItemStack>> Outputs = getMultiOutput(tRecipe, pall);
@@ -233,7 +233,7 @@ public class PreciseAssembler extends GT_MetaTileEntity_TooltipMultiBlockBase_EM
modifier ++;
}
mOutputItems = Outputs.getValue().toArray(new ItemStack[0]);
- calculateOverclockedNessMultiPara((int) lEUt, time, 1, Math.min(Integer.MAX_VALUE, getMaxInputEnergy()));
+ calculateOverclockedNessMultiPara((int) lEUt, time, 1, Math.min(Integer.MAX_VALUE, getMaxInputEnergy_EM()));
this.updateSlots();
if (this.mEUt > 0) {
this.mEUt = (-this.mEUt);