Store ItemStackWrappers instead of just ItemStacks (#844)
* Store ItemStackWrappers instead of just ItemStacks Allows proper usage of getRecipeForInput() * Refactoring and helper methods
This commit is contained in:
parent
46a35ac1fb
commit
c34bd48aa5
5 changed files with 51 additions and 15 deletions
|
@ -1,5 +1,6 @@
|
|||
package WayofTime.bloodmagic.altar;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import lombok.Getter;
|
||||
|
@ -354,7 +355,8 @@ public class BloodAltar implements IFluidHandler
|
|||
if (tileAltar.getStackInSlot(0) != null)
|
||||
{
|
||||
// Do recipes
|
||||
for (AltarRecipe recipe : AltarRecipeRegistry.getRecipes().values())
|
||||
AltarRecipe recipe = AltarRecipeRegistry.getRecipeForInput(tileAltar.getStackInSlot(0));
|
||||
if (recipe != null)
|
||||
{
|
||||
if (recipe.doesRequiredItemMatch(tileAltar.getStackInSlot(0), altarTier))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue