aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2021-01-17 10:36:05 +0100
committerGitHub <noreply@github.com>2021-01-17 10:36:05 +0100
commit0f84cb170ae683901a4b14e4a2d96a8c58b596c6 (patch)
tree965024fdc217e9ff2a60a563c9574af9e082e952 /src
parentea52a068e4c4343f8d62603a63859e3f37fea26f (diff)
parent02d173b9be253fec6c5c2e323c0b16f8e63c692d (diff)
downloadGT5-Unofficial-0f84cb170ae683901a4b14e4a2d96a8c58b596c6.tar.gz
GT5-Unofficial-0f84cb170ae683901a4b14e4a2d96a8c58b596c6.tar.bz2
GT5-Unofficial-0f84cb170ae683901a4b14e4a2d96a8c58b596c6.zip
Merge pull request #409 from GTNewHorizons/cleanroom-power
Fix cleanroom processing time
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java
index 5706a225e6..962fa54bf3 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_Cleanroom.java
@@ -73,7 +73,7 @@ public class GT_MetaTileEntity_Cleanroom extends GT_MetaTileEntity_MultiBlockBas
public boolean checkRecipe(ItemStack aStack) {
mEfficiencyIncrease = 100;
// use the standard overclock mechanism to determine duration and estimate a maximum consumption
- calculateOverclockedNessMulti(40, 45 * Math.min(1, mHeight - 1), 1, getMaxInputVoltage());
+ calculateOverclockedNessMulti(40, 45 * Math.max(1, mHeight - 1), 1, getMaxInputVoltage());
// negate it to trigger the special energy consumption function. divide by 10 to get the actual final consumption.
mEUt /= -10;
return true;