Fix EBF coil buff

This commit is contained in:
Technus 2016-12-26 15:44:00 +01:00
parent f361360e06
commit 443806f73a

View file

@ -113,17 +113,17 @@ public class GT_MetaTileEntity_ElectricBlastFurnace
this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
this.mEfficiencyIncrease = 10000;
int tHeatCapacityDivTiers = (mHeatingCapacity - tRecipe.mSpecialValue)/900;
calculateOverclockedNessMulti(tRecipe.mEUt, tRecipe.mDuration, 1, tVoltage);
calculateOverclockedNessMulti(tRecipe.mEUt, tRecipe.mDuration, 1, tVoltage);
//In case recipe is too OP for that machine
if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUt == Integer.MAX_VALUE - 1)
return false;
if (this.mEUt > 0) {
this.mEUt = (-this.mEUt);
}
if(tHeatCapacityDivTiers>0){
this.mEUt = (int) (this.mEUt * (Math.pow(0.95, tHeatCapacityDivTiers)));
this.mMaxProgresstime /= (tHeatCapacityDivTiers>=i ? 4 : 2);
}
if(tHeatCapacityDivTiers>0){
this.mEUt = (int) (this.mEUt * (Math.pow(0.95, tHeatCapacityDivTiers)));
this.mMaxProgresstime /=(int)Math.pow((tHeatCapacityDivTiers+2)/ 2,2);//TODO CHECK
}
this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
this.mOutputItems = new ItemStack[]{tRecipe.getOutput(0), tRecipe.getOutput(1)};
updateSlots();