aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/api/recipe/RecipeMapBackend.java9
-rw-r--r--src/main/java/gregtech/api/util/GT_Recipe.java2
2 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/recipe/RecipeMapBackend.java b/src/main/java/gregtech/api/recipe/RecipeMapBackend.java
index a20a99d3c3..cbc2e8b73f 100644
--- a/src/main/java/gregtech/api/recipe/RecipeMapBackend.java
+++ b/src/main/java/gregtech/api/recipe/RecipeMapBackend.java
@@ -152,6 +152,15 @@ public class RecipeMapBackend {
if (item == null) continue;
itemIndex.put(new GT_ItemStack(item), recipe);
}
+ if (recipe instanceof GT_Recipe.GT_Recipe_WithAlt recipeWithAlt) {
+ for (ItemStack[] itemStacks : recipeWithAlt.mOreDictAlt) {
+ if (itemStacks == null) continue;
+ for (ItemStack item : itemStacks) {
+ if (item == null) continue;
+ itemIndex.put(new GT_ItemStack(item), recipe);
+ }
+ }
+ }
return recipe;
}
diff --git a/src/main/java/gregtech/api/util/GT_Recipe.java b/src/main/java/gregtech/api/util/GT_Recipe.java
index a444a16ef2..57f619eb7e 100644
--- a/src/main/java/gregtech/api/util/GT_Recipe.java
+++ b/src/main/java/gregtech/api/util/GT_Recipe.java
@@ -912,7 +912,7 @@ public class GT_Recipe implements Comparable<GT_Recipe> {
public static class GT_Recipe_WithAlt extends GT_Recipe {
- ItemStack[][] mOreDictAlt;
+ public ItemStack[][] mOreDictAlt;
/**
* Only for {@link GT_RecipeBuilder}.