Overclock high amp machines correctly in Processing Array

This commit is contained in:
Blood-Asp 2017-03-23 11:30:57 +01:00
parent 3e3a08af9a
commit 9c91a6cea2

View file

@ -15,6 +15,8 @@ import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;
import org.apache.commons.lang3.ArrayUtils;
import static gregtech.api.enums.GT_Values.V;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@ -207,7 +209,7 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl
} else {
this.mEUt = tRecipe.mEUt;
this.mMaxProgresstime = tRecipe.mDuration;
while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) {
while (this.mEUt <= V[tTier - 1] * map.mAmperage) {
this.mEUt *= 4;
this.mMaxProgresstime /= 2;
}