Fusion fix

This commit is contained in:
Technus 2017-04-03 09:07:44 +02:00
parent 9edf005c3c
commit 68f5479199

View file

@ -265,7 +265,7 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
if (tFluidList.size() > 1) {
FluidStack[] tFluids = tFluidList.toArray(new FluidStack[tFluidList.size()]);
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFusionRecipes.findRecipe(this.getBaseMetaTileEntity(), this.mLastRecipe, false, GT_Values.V[8], tFluids, new ItemStack[]{});
if (tRecipe == null && !mRunningOnLoad) {
if ((tRecipe == null && !mRunningOnLoad) || (maxEUStore() < tRecipe.mSpecialValue)) {
turnCasingActive(false);
this.mLastRecipe = null;
return false;
@ -372,7 +372,7 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
mMaxProgresstime = 0;
turnCasingActive(false);
}
aBaseMetaTileEntity.decreaseStoredEnergyUnits(this.mLastRecipe.mSpecialValue, true);
aBaseMetaTileEntity.decreaseStoredEnergyUnits(this.mLastRecipe.mSpecialValue - this.mEUt, true);
}
}
if (mMaxProgresstime <= 0)