diff --git a/src/main/java/net/themcbrothers/interiormod/compat/jei/InteriorRecipes.java b/src/main/java/net/themcbrothers/interiormod/compat/jei/InteriorRecipes.java index 13227fe..5677648 100644 --- a/src/main/java/net/themcbrothers/interiormod/compat/jei/InteriorRecipes.java +++ b/src/main/java/net/themcbrothers/interiormod/compat/jei/InteriorRecipes.java @@ -2,15 +2,11 @@ import net.minecraft.client.Minecraft; import net.minecraft.client.multiplayer.ClientLevel; -import net.minecraft.resources.ResourceLocation; -import net.minecraft.world.Container; import net.minecraft.world.item.crafting.CraftingRecipe; -import net.minecraft.world.item.crafting.Recipe; import net.minecraft.world.item.crafting.RecipeManager; -import net.minecraft.world.item.crafting.RecipeType; import net.themcbrothers.interiormod.init.InteriorRecipeTypes; -import java.util.*; +import java.util.List; /** * @author TheMCBrothers @@ -25,12 +21,6 @@ public InteriorRecipes() { } public List getFurnitureCraftingRecipes() { - return new ArrayList<>(getRecipes(recipeManager, InteriorRecipeTypes.FURNITURE_CRAFTING.get())); - } - - @SuppressWarnings("unchecked") - private > Collection getRecipes(RecipeManager recipeManager, RecipeType recipeType) { - Map> recipes = recipeManager.recipes.getOrDefault(recipeType, Collections.emptyMap()); - return (Collection) recipes.values(); + return this.recipeManager.getAllRecipesFor(InteriorRecipeTypes.FURNITURE_CRAFTING.get()); } } diff --git a/src/main/resources/META-INF/accesstransformer.cfg b/src/main/resources/META-INF/accesstransformer.cfg index 2ea8bdd..a8a8f2f 100644 --- a/src/main/resources/META-INF/accesstransformer.cfg +++ b/src/main/resources/META-INF/accesstransformer.cfg @@ -1,2 +1 @@ -public net.minecraft.data.advancements.AdvancementProvider f_123961_ # GSON public net.minecraft.world.item.crafting.RecipeManager f_44007_ # recipes \ No newline at end of file