Fixed Pyrooven overclocking

This commit is contained in:
Blood-Asp 2016-07-01 01:14:35 +02:00
parent 73749472d2
commit f496def067

View file

@ -69,7 +69,17 @@ public class GT_MetaTileEntity_PyrolyseOven extends GT_MetaTileEntity_MultiBlock
this.mEUt = tRecipe.mEUt; this.mEUt = tRecipe.mEUt;
this.mMaxProgresstime = tRecipe.mDuration; this.mMaxProgresstime = tRecipe.mDuration;
if (tRecipe.mEUt <= 16) {
this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
} else {
this.mEUt = tRecipe.mEUt;
this.mMaxProgresstime = tRecipe.mDuration;
while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) {
this.mEUt *= 4;
this.mMaxProgresstime /= 2;
}
}
if (this.mEUt > 0) { if (this.mEUt > 0) {
this.mEUt = (-this.mEUt); this.mEUt = (-this.mEUt);
} }