Merge pull request #2002 from EverMine/master

Add missing adding to neiShredderRecipes in CompatRecipeRegistry
This commit is contained in:
HbmMods 2025-03-21 19:23:31 +01:00 committed by GitHub
commit 07618f6a60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 42 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,8 @@ 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);
if (ShredderRecipes.neiShredderRecipes != null)
ShredderRecipes.neiShredderRecipes.put(comp, output);
} }
} }