Skip to content

Commit 195bed9

Browse files
authored
Add check to not cache invalid recipes (#4486)
1 parent 3484551 commit 195bed9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/gregtechceu/gtceu/api/machine/trait/RecipeLogic.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ protected void handleSearchingRecipes(@NotNull Iterator<GTRecipe> matches) {
344344
if (checkMatchedRecipeAvailable(match))
345345
return;
346346

347+
if (!matchRecipe(match).isSuccess()) {
348+
continue;
349+
}
350+
347351
// cache matching recipes.
348352
if (lastFailedMatches == null) {
349353
lastFailedMatches = new ArrayList<>();

0 commit comments

Comments
 (0)