From 34d9649c700d05417fcda91be9c23f5bbe8c9afd Mon Sep 17 00:00:00 2001
From: WayofTime <wtime@live.ca>
Date: Wed, 20 Jul 2016 21:29:04 -0400
Subject: [PATCH] Fixed the Blood Altar so that it can (again) work on a stack
 size larger than 1

---
 changelog.txt                                         |  1 +
 .../bloodmagic/api/registry/AltarRecipeRegistry.java  | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/changelog.txt b/changelog.txt
index 9f45b9da..50365e8a 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -2,6 +2,7 @@
 Version 2.0.3-52
 ------------------------------------------------------
 - Updated the Sanguine Scientiem with Alchemy Array recipes
+- Fixed the Blood Altar so that it can (again) work on a stack size larger than 1.
 
 ------------------------------------------------------
 Version 2.0.3-51
diff --git a/src/main/java/WayofTime/bloodmagic/api/registry/AltarRecipeRegistry.java b/src/main/java/WayofTime/bloodmagic/api/registry/AltarRecipeRegistry.java
index 24ef045b..4cf70634 100644
--- a/src/main/java/WayofTime/bloodmagic/api/registry/AltarRecipeRegistry.java
+++ b/src/main/java/WayofTime/bloodmagic/api/registry/AltarRecipeRegistry.java
@@ -58,9 +58,18 @@ public class AltarRecipeRegistry
         return null;
     }
 
+    //TODO: Determine a more time-effective method
     public static AltarRecipe getRecipeForInput(ItemStack input)
     {
-        return getRecipeForInput(Collections.singletonList(input));
+        for (AltarRecipe recipe : recipes.values())
+        {
+            if (recipe.doesRequiredItemMatch(input, recipe.getMinTier()))
+            {
+                return recipe;
+            }
+        }
+
+        return null;
     }
 
     public static AltarRecipe getRecipeForInput(String input)