Fixed the Blood Altar so that it can (again) work on a stack size larger than 1
This commit is contained in:
parent
4e7702290e
commit
34d9649c70
2 changed files with 11 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
Version 2.0.3-52
|
Version 2.0.3-52
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
- Updated the Sanguine Scientiem with Alchemy Array recipes
|
- 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
|
Version 2.0.3-51
|
||||||
|
|
|
@ -58,9 +58,18 @@ public class AltarRecipeRegistry
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO: Determine a more time-effective method
|
||||||
public static AltarRecipe getRecipeForInput(ItemStack input)
|
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)
|
public static AltarRecipe getRecipeForInput(String input)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue