aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2021-01-17 16:21:43 +0800
committerGitHub <noreply@github.com>2021-01-17 16:21:43 +0800
commit02d173b9be253fec6c5c2e323c0b16f8e63c692d (patch)
tree965024fdc217e9ff2a60a563c9574af9e082e952 /src/main/java/gregtech/common
parentea52a068e4c4343f8d62603a63859e3f37fea26f (diff)
downloadGT5-Unofficial-02d173b9be253fec6c5c2e323c0b16f8e63c692d.tar.gz
GT5-Unofficial-02d173b9be253fec6c5c2e323c0b16f8e63c692d.tar.bz2
GT5-Unofficial-02d173b9be253fec6c5c2e323c0b16f8e63c692d.zip
Fix cleanroom power usage
Diffstat (limited to 'src/main/java/gregtech/common')
-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;