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