Hide Orb filling recipes from JEI

This commit is contained in:
Nick 2016-01-02 14:34:15 -08:00
parent 5eabf5b009
commit ae3f5ddf3f

View file

@ -1,5 +1,6 @@
package WayofTime.bloodmagic.compat.jei.altar; package WayofTime.bloodmagic.compat.jei.altar;
import WayofTime.bloodmagic.api.orb.IBloodOrb;
import WayofTime.bloodmagic.api.registry.AltarRecipeRegistry; import WayofTime.bloodmagic.api.registry.AltarRecipeRegistry;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
@ -20,9 +21,9 @@ public class AltarRecipeMaker
for (Map.Entry<ItemStack, AltarRecipeRegistry.AltarRecipe> itemStackAltarRecipeEntry : altarMap.entrySet()) for (Map.Entry<ItemStack, AltarRecipeRegistry.AltarRecipe> 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 input = itemStackAltarRecipeEntry.getKey();
ItemStack output = itemStackAltarRecipeEntry.getValue().getOutput(); ItemStack output = itemStackAltarRecipeEntry.getValue().getOutput();
int requiredTier = itemStackAltarRecipeEntry.getValue().getMinTier().toInt(); int requiredTier = itemStackAltarRecipeEntry.getValue().getMinTier().toInt();