anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: techreborn/techreborn
Issue: [1.10.2] Minetweaker recipes not showing up in JEI

All these versions are most recent available on the curse launcher at the time of this posting
JEI-1.10.2-3.14.3.403
Techreborn-1.10.2-2.1.2.160
RebornCore-1.10.2-2.13.2.114
Crafttweaker -1.10.2-3.0.17
Forge 2221

I've only tried a few different ones, but it seems that any MT machine recipes that I add won't show up in JEI after refreshing, but will still function correctly. I haven't taken a peek at the relevant code yet, but I suspect it's related to crafttweaker API updates (see [here](https://github.com/jaredlll08/CraftTweaker/issues/136) and [here](https://github.com/SonarSonic/Calculator/issues/202) for what seems to be a similar case)

Changed files:
src/main/java/techreborn/compat/minetweaker/MTGeneric.java

diff --git a/src/main/java/techreborn/compat/minetweaker/MTGeneric.java b/src/main/java/techreborn/compat/minetweaker/MTGeneric.java
index eb9163538..41e299980 100644
--- a/src/main/java/techreborn/compat/minetweaker/MTGeneric.java
+++ b/src/main/java/techreborn/compat/minetweaker/MTGeneric.java
@@ -32,6 +32,7 @@ public class MTGeneric {
 		@Override
 		public void apply() {
 			RecipeHandler.addRecipe(recipe);
+			MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
 		}
 
 		@Override
@@ -42,6 +43,7 @@ public class MTGeneric {
 		@Override
 		public void undo() {
 			RecipeHandler.recipeList.remove(recipe);
+			MineTweakerAPI.getIjeiRecipeRegistry().removeRecipe(recipe);
 		}
 
 		@Override
@@ -77,6 +79,7 @@ public class MTGeneric {
 					if (ItemUtils.isItemEqual(stack, output, true, false)) {
 						removedRecipes.add((BaseRecipe) recipeType);
 						RecipeHandler.recipeList.remove(recipeType);
+						MineTweakerAPI.getIjeiRecipeRegistry().removeRecipe(recipeType);
 						break;
 					}
 				}
@@ -89,6 +92,7 @@ public class MTGeneric {
 				for (BaseRecipe recipe : removedRecipes) {
 					if (recipe != null) {
 						RecipeHandler.addRecipe(recipe);
+						MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
 					}
 				}
 			}
@@ -147,6 +151,7 @@ public class MTGeneric {
 				for (BaseRecipe recipe : removedRecipes) {
 					if (recipe != null) {
 						RecipeHandler.addRecipe(recipe);
+						MineTweakerAPI.getIjeiRecipeRegistry().addRecipe(recipe);
 					}
 				}
 			}