Fix boost of starting of fusion reactors

This commit is contained in:
Techlone 2016-03-15 13:41:02 +05:00
parent 792cca0af6
commit fa3e5c0a44

View file

@ -367,7 +367,11 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
turnCasingActive(mMaxProgresstime > 0);
if (aBaseMetaTileEntity.isAllowedToWork()) {
this.mEUStore = (int) aBaseMetaTileEntity.getStoredEU();
if (checkRecipe(mInventory[1]) && aBaseMetaTileEntity.getStoredEU() >= this.mLastRecipe.mSpecialValue) {
if (checkRecipe(mInventory[1])) {
if (this.mEUStore < this.mLastRecipe.mSpecialValue) {
mMaxProgresstime = 0;
turnCasingActive(false);
}
aBaseMetaTileEntity.decreaseStoredEnergyUnits(this.mLastRecipe.mSpecialValue, true);
}
}