Fixed path blocks so they are actually craftable.

This commit is contained in:
WayofTime 2016-02-20 15:34:16 -05:00
parent 4a1cf11f6d
commit 37227d42f9
4 changed files with 14 additions and 9 deletions

View file

@ -1,8 +1,8 @@
package WayofTime.bloodmagic.api.recipe;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
@ -256,11 +256,11 @@ public class ShapedBloodOrbRecipe implements IRecipe
{
return false;
}
} else if (target instanceof ArrayList)
} else if (target instanceof List)
{
boolean matched = false;
Iterator<ItemStack> itr = ((ArrayList<ItemStack>) target).iterator();
Iterator<ItemStack> itr = ((List<ItemStack>) target).iterator();
while (itr.hasNext() && !matched)
{
matched = OreDictionary.itemMatches(itr.next(), slot, false);

View file

@ -54,7 +54,7 @@ public class ShapelessBloodOrbRecipe implements IRecipe
tier = ((IBloodOrb) in).getOrbLevel(0);
input.add(tier);
}
}else if (in instanceof ItemStack)
} else if (in instanceof ItemStack)
{
input.add(((ItemStack) in).copy());
} else if (in instanceof Item)
@ -154,9 +154,9 @@ public class ShapelessBloodOrbRecipe implements IRecipe
} else if (next instanceof ItemStack)
{
match = OreDictionary.itemMatches((ItemStack) next, slot, false);
} else if (next instanceof ArrayList)
} else if (next instanceof List)
{
Iterator<ItemStack> itr = ((ArrayList<ItemStack>) next).iterator();
Iterator<ItemStack> itr = ((List<ItemStack>) next).iterator();
while (itr.hasNext() && !match)
{
match = OreDictionary.itemMatches(itr.next(), slot, false);