Skip to content

Commit

Permalink
added test logger for jei subcategories
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Jan 31, 2025
1 parent 7fba1a3 commit 45081ab
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public void registerRecipes(@NotNull IRecipeRegistration registration) {
if (tuple.map.getSubCategories().isEmpty()) {
registration.addRecipes(RECIPE_TYPES.get(id.toString()), getRecipes(tuple.map));
} else {
Antimatter.LOGGER.info(tuple.map.getId());
List<IRecipe> recipes = getRecipes(tuple.map);
List<IRecipe> mainRecipes = new ArrayList<>();
Map<String, List<IRecipe>> recipeMap = new HashMap<>();
Expand All @@ -176,8 +177,10 @@ public void registerRecipes(@NotNull IRecipeRegistration registration) {
mainRecipes.add(recipe);
}
}
Antimatter.LOGGER.info(mainRecipes.stream().map(r -> r.getId().toString()).toList());
registration.addRecipes(RECIPE_TYPES.get(id.toString()), mainRecipes);
for (var entry : recipeMap.entrySet()) {
Antimatter.LOGGER.info(entry.getValue().stream().map(r -> r.getId().toString()).toList());
registration.addRecipes(RECIPE_TYPES.get(Ref.SHARED_ID + ":" + entry.getKey()), entry.getValue());
}
}
Expand Down

0 comments on commit 45081ab

Please sign in to comment.