From ae3f5ddf3f381619fab18da4d912966848bb80dc Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 2 Jan 2016 14:34:15 -0800 Subject: [PATCH] Hide Orb filling recipes from JEI --- .../bloodmagic/compat/jei/altar/AltarRecipeMaker.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/WayofTime/bloodmagic/compat/jei/altar/AltarRecipeMaker.java b/src/main/java/WayofTime/bloodmagic/compat/jei/altar/AltarRecipeMaker.java index a2adf9ed..a6776a38 100644 --- a/src/main/java/WayofTime/bloodmagic/compat/jei/altar/AltarRecipeMaker.java +++ b/src/main/java/WayofTime/bloodmagic/compat/jei/altar/AltarRecipeMaker.java @@ -1,5 +1,6 @@ package WayofTime.bloodmagic.compat.jei.altar; +import WayofTime.bloodmagic.api.orb.IBloodOrb; import WayofTime.bloodmagic.api.registry.AltarRecipeRegistry; import net.minecraft.item.ItemStack; @@ -20,9 +21,9 @@ public class AltarRecipeMaker for (Map.Entry itemStackAltarRecipeEntry : altarMap.entrySet()) { - if (itemStackAltarRecipeEntry.getValue().getOutput() != null) + if (!(itemStackAltarRecipeEntry.getKey().getItem() instanceof IBloodOrb)) { - // Make sure output is not null. If it is, the recipe is for a filling orb, and we don't want that. + // Make sure input is not a Blood Orb. If it is, the recipe is for a filling orb, and we don't want that. ItemStack input = itemStackAltarRecipeEntry.getKey(); ItemStack output = itemStackAltarRecipeEntry.getValue().getOutput(); int requiredTier = itemStackAltarRecipeEntry.getValue().getMinTier().toInt();