Merge pull request #453 from Techlone/fix-fusion-start

Fix boost of starting of fusion reactors
Seems fine, will test it a bit later.
This commit is contained in:
Blood-Asp 2016-03-16 22:46:38 +01:00
commit b9d9706727

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);
}
}