Skip to content

Commit

Permalink
Merge pull request #116 from SymmetricDevs/sintering-fix
Browse files Browse the repository at this point in the history
Fix Sintering Oven log spam
  • Loading branch information
swagXDragonSlayer46YT authored Jul 18, 2023
2 parents 795a173 + c284fe4 commit af5c79a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import gregtech.api.recipes.Recipe;
import gregtech.api.recipes.RecipeBuilder;
import gregtech.api.recipes.RecipeMap;
import gregtech.api.util.ValidationResult;
import org.jetbrains.annotations.NotNull;
import supersymmetry.api.recipes.properties.SinterProperty;

Expand Down Expand Up @@ -44,4 +45,12 @@ public boolean applyProperty(@NotNull String key, Object value) {
return super.applyProperty(key, value);
}

@Override
public ValidationResult<Recipe> build() {
if (this.recipePropertyStorage == null || !this.recipePropertyStorage.hasRecipeProperty(SinterProperty.getInstance())) {
this.usePlasma(false);
}
return super.build();
}

}

0 comments on commit af5c79a

Please sign in to comment.