Blood Orb MT fix
This commit is contained in:
parent
885d1a41de
commit
b24396c66f
1 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ import static WayofTime.alchemicalWizardry.common.tweaker.MTHelper.toStack;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import WayofTime.alchemicalWizardry.api.items.ShapelessBloodOrbRecipe;
|
||||||
import minetweaker.IUndoableAction;
|
import minetweaker.IUndoableAction;
|
||||||
import minetweaker.MineTweakerAPI;
|
import minetweaker.MineTweakerAPI;
|
||||||
import minetweaker.api.item.IIngredient;
|
import minetweaker.api.item.IIngredient;
|
||||||
|
@ -51,7 +52,7 @@ public class BloodOrb
|
||||||
@Override
|
@Override
|
||||||
public void apply()
|
public void apply()
|
||||||
{
|
{
|
||||||
if (isShapeless) iRecipe = new ShapedBloodOrbRecipe(output, recipe);
|
if (isShapeless) iRecipe = new ShapelessBloodOrbRecipe(output, recipe);
|
||||||
else iRecipe = new ShapedBloodOrbRecipe(output, recipe);
|
else iRecipe = new ShapedBloodOrbRecipe(output, recipe);
|
||||||
CraftingManager.getInstance().getRecipeList().add(iRecipe);
|
CraftingManager.getInstance().getRecipeList().add(iRecipe);
|
||||||
}
|
}
|
||||||
|
@ -105,7 +106,7 @@ public class BloodOrb
|
||||||
{
|
{
|
||||||
for (IRecipe r : (List<IRecipe>) CraftingManager.getInstance().getRecipeList())
|
for (IRecipe r : (List<IRecipe>) CraftingManager.getInstance().getRecipeList())
|
||||||
{
|
{
|
||||||
if(r.getRecipeOutput() != null && r.getRecipeOutput().isItemEqual(output)) {
|
if((r instanceof ShapedBloodOrbRecipe || r instanceof ShapelessBloodOrbRecipe) && r.getRecipeOutput() != null && r.getRecipeOutput().isItemEqual(output)) {
|
||||||
iRecipe = r;
|
iRecipe = r;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue