aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Xizhi <60341015+GlodBlock@users.noreply.github.com>2022-09-13 02:42:50 +0800
committerGitHub <noreply@github.com>2022-09-12 20:42:50 +0200
commitebae792931298821ba8aa834c83ae50b2c49e5c9 (patch)
tree4b50edab261851a67084f4c171aa03ea966e0990 /src
parent9237907ec26d3de70f10cc04bbcd6a2094e5c329 (diff)
downloadGT5-Unofficial-ebae792931298821ba8aa834c83ae50b2c49e5c9.tar.gz
GT5-Unofficial-ebae792931298821ba8aa834c83ae50b2c49e5c9.tar.bz2
GT5-Unofficial-ebae792931298821ba8aa834c83ae50b2c49e5c9.zip
fix voltage check (#79)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java b/src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java
index 146dcf0c1d..5017a143c9 100644
--- a/src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java
+++ b/src/main/java/goodgenerator/blocks/tileEntity/PreciseAssembler.java
@@ -198,7 +198,7 @@ public class PreciseAssembler extends GT_MetaTileEntity_TooltipMultiBlockBase_EM
tRecipe.mEUt,
tRecipe.mDuration,
1,
- Math.min(GT_Values.V[machineTier - 1], getMaxInputVoltage()));
+ Math.min(getMachineVoltageLimit(), getMaxInputEnergyPA()));
this.updateSlots();
if (this.mEUt > 0) {
this.mEUt = (-this.mEUt);