Fix fusion reactor not using input fluids.

This commit is contained in:
Blood-Asp 2016-09-28 19:55:31 +02:00
parent 7b8573d32e
commit 18e8ee1ad3

View file

@ -252,11 +252,12 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
if (tFluidList.size() > 1) { if (tFluidList.size() > 1) {
FluidStack[] tFluids = tFluidList.toArray(new FluidStack[tFluidList.size()]); 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[]{}); GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sFusionRecipes.findRecipe(this.getBaseMetaTileEntity(), this.mLastRecipe, false, GT_Values.V[8], tFluids, new ItemStack[]{});
if (mRunningOnLoad) { if (tRecipe == null && !mRunningOnLoad) {
turnCasingActive(false); turnCasingActive(false);
this.mLastRecipe = null; this.mLastRecipe = null;
return false; return false;
} }
if (mRunningOnLoad || tRecipe.isRecipeInputEqual(true, tFluids, new ItemStack[]{})) {
this.mLastRecipe = tRecipe; this.mLastRecipe = tRecipe;
this.mEUt = (this.mLastRecipe.mEUt * overclock(this.mLastRecipe.mSpecialValue)); this.mEUt = (this.mLastRecipe.mEUt * overclock(this.mLastRecipe.mSpecialValue));
this.mMaxProgresstime = this.mLastRecipe.mDuration / overclock(this.mLastRecipe.mSpecialValue); this.mMaxProgresstime = this.mLastRecipe.mDuration / overclock(this.mLastRecipe.mSpecialValue);
@ -266,6 +267,7 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
mRunningOnLoad = false; mRunningOnLoad = false;
return true; return true;
} }
}
return false; return false;
} }