mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-22 21:09:44 +00:00
Merge pull request #31 from joshiejack/patch-3
Fixing potential arrayoutofbounds exception
This commit is contained in:
commit
82f947b31b
1 file changed
+1
-1
@@ -91,7 +91,7 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
|
||||
}
|
||||
|
||||
ArrayList<ItemStack> orbs = new ArrayList<ItemStack>();
|
||||
for(int i = recipe.getOrbLevel(); i <= bloodOrbs.size(); i++) {
|
||||
for(int i = Math.max(0, recipe.getOrbLevel()); i <= bloodOrbs.size(); i++) {
|
||||
ItemStack orb = new ItemStack(bloodOrbs.get(i - 1));
|
||||
if(NEIServerUtils.areStacksSameTypeCrafting(orb, ingredient)) {
|
||||
arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||
|
||||
Reference in new issue
Block a user