Skip to content

Commit 569fe4e

Browse files
authored
fix erroneous RecipeType log spam (#3979)
1 parent e651fc7 commit 569fe4e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/java/com/gregtechceu/gtceu/api/recipe/lookup/RecipeManagerHandler.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public final class RecipeManagerHandler {
2929
*
3030
* @param recipesByID the recipes stored by their ID
3131
* @param gtRecipeType the recipe type to add the recipes to, which owns the proxy recipes
32-
* @param proxyType the recipeType for the proxy recipes
3332
* @param proxyRecipes the list of proxy recipes to populate
3433
*/
3534
public static void addProxyRecipesToLookup(@NotNull Map<ResourceLocation, Recipe<?>> recipesByID,
@@ -62,10 +61,7 @@ public static void addRecipesToLookup(@NotNull Map<ResourceLocation, Recipe<?>>
6261
var lookup = gtRecipeType.getLookup();
6362
for (var r : recipesByID.values()) {
6463
if (r.getType() != gtRecipeType) {
65-
// should not happen
66-
GTCEu.LOGGER.warn("Recipe '{}' with RecipeType '{}' did not match GTRecipeType '{}'.",
67-
r.getId(), ForgeRegistries.RECIPE_TYPES.getKey(r.getType()),
68-
gtRecipeType.registryName);
64+
// do not add recipes of incompatible type
6965
continue;
7066
}
7167
if (r instanceof GTRecipe recipe) {

0 commit comments

Comments
 (0)