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:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user