Skip to content

Commit

Permalink
Fix NoClassFoundException when EMI was not installed (#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Nov 13, 2024
1 parent d4f1820 commit f299392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ public IEditableUI<WidgetGroup, RecipeHolder> createEditableUITemplate(final boo
} else if (LDLib.isEmiLoaded()) {
recipeType.getRecipesByCategory().keySet()
.forEach(e -> EmiApi
.displayRecipeCategory(GTRecipeEMICategory.getCategoryFor(e)));
.displayRecipeCategory(
GTRecipeEMICategory.CATEGORIES.apply(e)));
}
}
}).setHoverTooltips("gtceu.recipe_type.show_recipes"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

public class GTRecipeEMICategory extends EmiRecipeCategory {

public static final Function<GTRecipeCategory, List<GTEmiRecipe>> CATEGORIES = Util
.memoize(category1 -> new ArrayList<>());
public static final Function<GTRecipeCategory, GTRecipeEMICategory> CATEGORIES = Util
.memoize(GTRecipeEMICategory::getCategoryFor);
public final GTRecipeType recipeType;

private final GTRecipeCategory category;
Expand Down

0 comments on commit f299392

Please sign in to comment.