Fixed Pyrooven overclocking
This commit is contained in:
parent
73749472d2
commit
f496def067
1 changed files with 11 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue