1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-25 19:07:39 +00:00

Add back JEI integration

This commit is contained in:
Jonathan Coates
2021-08-29 22:20:06 +01:00
parent bbf3e48763
commit b2273c9b29
3 changed files with 7 additions and 5 deletions

View File

@@ -90,10 +90,10 @@ public class JEIComputerCraft implements IModPlugin
runtime.getIngredientManager().addIngredientsAtRuntime( VanillaTypes.ITEM, upgradeItems );
// Hide all upgrade recipes
IRecipeCategory<?> category = registry.getRecipeCategory( VanillaRecipeCategoryUid.CRAFTING );
IRecipeCategory<?> category = registry.getRecipeCategory( VanillaRecipeCategoryUid.CRAFTING, false );
if( category != null )
{
for( Object wrapper : registry.getRecipes( category ) )
for( Object wrapper : registry.getRecipes( category, null, false ) )
{
if( !(wrapper instanceof Recipe) ) continue;
ResourceLocation id = ((Recipe<?>) wrapper).getId();

View File

@@ -33,6 +33,7 @@ import javax.annotation.Nonnull;
import java.util.*;
import static net.minecraft.core.NonNullList.of;
import static net.minecraft.world.item.crafting.Ingredient.of;
class RecipeResolver implements IRecipeManagerPlugin
{