Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

Commit

Permalink
Fix digester
Browse files Browse the repository at this point in the history
  • Loading branch information
Elisis committed Jun 13, 2022
1 parent 94fdc0a commit 5736276
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/main/java/com/elisis/gtnhlanth/common/tileentity/Digester.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,29 +113,33 @@ public boolean checkRecipe(ItemStack itemStack) {

//Collection<GT_Recipe> tRecipes = RecipeAdder.instance.DigesterRecipes.mRecipeList;
GT_Recipe tRecipe = RecipeAdder.instance.DigesterRecipes.findRecipe(
this.getBaseMetaTileEntity(),
this.doTickProfilingInThisTick,
getBaseMetaTileEntity(),
false,
tVoltage,
tFluidInputArray,
tItems
);

if (tRecipe == null)
return false;
GT_Log.out.print("Recipe not null\n");
//GT_Log.out.print("Recipe not null\n");
if (tRecipe.isRecipeInputEqual(true, tFluidInputArray, tItems)) {
GT_Log.out.print("in isRecipeInputEqual\n");
//GT_Log.out.print("in isRecipeInputEqual\n");
this.mEfficiency = (10000 - (this.getIdealStatus() - this.getRepairStatus()) * 1000);
this.mEfficiencyIncrease = 10000;
this.calculateOverclockedNessMulti(tRecipe.mEUt, tRecipe.mDuration, 1, tVoltage);

if (mMaxProgresstime == Integer.MAX_VALUE - 1 && this.mEUt == Integer.MAX_VALUE - 1)
return false;
GT_Log.out.print("valid values");

if (this.mEUt > 0)
this.mEUt = (-this.mEUt);
//GT_Log.out.print("valid values");

if (tRecipe.mSpecialValue > this.getCoilLevel().getHeat())
return false;
GT_Log.out.print("Coils good");
//GT_Log.out.print("Coils good\n");
//GT_Log.out.print(tRecipe.getFluidOutput(0).getLocalizedName());
this.mOutputFluids = new FluidStack[] {
tRecipe.getFluidOutput(0)
};
Expand Down

0 comments on commit 5736276

Please sign in to comment.