This commit is contained in:
Brianna O'Keefe 2018-09-30 14:08:37 -04:00
parent 1bd79b3505
commit 53d8beab08

View File

@ -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;