mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-28 23:57:28 +02:00
Patch
This commit is contained in:
parent
1bd79b3505
commit
53d8beab08
@ -57,11 +57,11 @@ public class ModuleAutoCrafting implements Module {
|
||||
if (!(recipe instanceof ShapedRecipe)) continue;
|
||||
cachedRecipes.put(material, recipe);
|
||||
}
|
||||
}
|
||||
|
||||
for (ItemStack itemStack : ((ShapedRecipe) cachedRecipes.get(material)).getIngredientMap().values()) {
|
||||
if (itemStack == null) continue;
|
||||
materials.add(itemStack.getType());
|
||||
} else {
|
||||
for (ItemStack itemStack : ((ShapedRecipe) cachedRecipes.get(material)).getIngredientMap().values()) {
|
||||
if (itemStack == null) continue;
|
||||
materials.add(itemStack.getType());
|
||||
}
|
||||
}
|
||||
}
|
||||
return materials;
|
||||
|
Loading…
Reference in New Issue
Block a user