fix last orb not showing up
This commit is contained in:
parent
c14e5be86e
commit
f22694cadc
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
|
||||||
this.output = new PositionedStack(recipe.getResult(), 76, 25);
|
this.output = new PositionedStack(recipe.getResult(), 76, 25);
|
||||||
this.lp = recipe.getAmountNeeded() * 100;
|
this.lp = recipe.getAmountNeeded() * 100;
|
||||||
this.orbs = new ArrayList<BloodOrbs>();
|
this.orbs = new ArrayList<BloodOrbs>();
|
||||||
for(int i = recipe.getOrbLevel(); i < bloodOrbs.size(); i++) {
|
for(int i = recipe.getOrbLevel(); i <= bloodOrbs.size(); i++) {
|
||||||
ItemStack orb = new ItemStack(bloodOrbs.get(i - 1));
|
ItemStack orb = new ItemStack(bloodOrbs.get(i - 1));
|
||||||
orbs.add(new BloodOrbs(orb));
|
orbs.add(new BloodOrbs(orb));
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayList<ItemStack> orbs = new ArrayList<ItemStack>();
|
ArrayList<ItemStack> orbs = new ArrayList<ItemStack>();
|
||||||
for(int i = recipe.getOrbLevel(); i < bloodOrbs.size(); i++) {
|
for(int i = recipe.getOrbLevel(); i <= bloodOrbs.size(); i++) {
|
||||||
ItemStack orb = new ItemStack(bloodOrbs.get(i - 1));
|
ItemStack orb = new ItemStack(bloodOrbs.get(i - 1));
|
||||||
if(NEIServerUtils.areStacksSameTypeCrafting(orb, ingredient)) {
|
if(NEIServerUtils.areStacksSameTypeCrafting(orb, ingredient)) {
|
||||||
arecipes.add(new CachedAlchemyRecipe(recipe));
|
arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue