Add missing adding to neiShredderRecipes in CompatRecipeRegistry

This commit is contained in:
ItsMakar 2025-03-21 16:42:49 +02:00
parent 3ac7a8cdd6
commit 291a34103a
2 changed files with 41 additions and 40 deletions

View File

@ -422,7 +422,7 @@ public class ShredderRecipes extends SerializableRecipe {
//convert the map only once to save on processing power (might be more ram intensive but that can't be THAT bad, right?) //convert the map only once to save on processing power (might be more ram intensive but that can't be THAT bad, right?)
if(neiShredderRecipes == null) if(neiShredderRecipes == null)
neiShredderRecipes = new HashMap(shredderRecipes); neiShredderRecipes = new HashMap<>(shredderRecipes);
return neiShredderRecipes; return neiShredderRecipes;
} }

View File

@ -59,6 +59,7 @@ public class CompatRecipeRegistry {
for(ItemStack allItems : input.extractForNEI()) { for(ItemStack allItems : input.extractForNEI()) {
ComparableStack comp = new ComparableStack(allItems); ComparableStack comp = new ComparableStack(allItems);
ShredderRecipes.shredderRecipes.put(comp, output); ShredderRecipes.shredderRecipes.put(comp, output);
ShredderRecipes.neiShredderRecipes.put(comp, output);
} }
} }