Fix fusion reactor not using input fluids.
This commit is contained in:
parent
7079dccb8c
commit
4fd6c2ae72
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
@ -265,6 +266,7 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
|
||||||
turnCasingActive(true);
|
turnCasingActive(true);
|
||||||
mRunningOnLoad = false;
|
mRunningOnLoad = false;
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue