From 3238b3e78710f762721904d77a01f30fc55ad201 Mon Sep 17 00:00:00 2001 From: hilburn Date: Sun, 1 Feb 2015 13:52:48 +0000 Subject: [PATCH] Shapeless Blood Orb Recipe fix --- .../api/items/ShapelessBloodOrbRecipe.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/api/items/ShapelessBloodOrbRecipe.java b/src/main/java/WayofTime/alchemicalWizardry/api/items/ShapelessBloodOrbRecipe.java index 3b22dedd..86bbb56f 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/api/items/ShapelessBloodOrbRecipe.java +++ b/src/main/java/WayofTime/alchemicalWizardry/api/items/ShapelessBloodOrbRecipe.java @@ -39,12 +39,17 @@ public class ShapelessBloodOrbRecipe implements IRecipe output = result.copy(); for (Object in : recipe) { - if (in instanceof ItemStack) - { - input.add(((ItemStack) in).copy()); - } else if (in instanceof IBloodOrb) + if (in instanceof IBloodOrb) { //If the item is an instanceof IBloodOrb then save the level of the orb input.add((Integer) (((IBloodOrb) in).getOrbLevel())); + } + else if (in instanceof ItemStack) + { + if (((ItemStack)in).getItem() instanceof IBloodOrb) + { + input.add((Integer) (((IBloodOrb) ((ItemStack)in).getItem()).getOrbLevel())); + } + else input.add(((ItemStack) in).copy()); } else if (in instanceof Item) { input.add(new ItemStack((Item) in)); @@ -137,6 +142,7 @@ public class ShapelessBloodOrbRecipe implements IRecipe return false; } } else return false; + match = true; } else if (next instanceof ItemStack) { match = OreDictionary.itemMatches((ItemStack) next, slot, false);