Fix recipe by stack lookup
This commit is contained in:
parent
ddcc1237e8
commit
e12c78877e
|
@ -20,6 +20,10 @@ public class AltarRecipeRegistry {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AltarRecipe getRecipeForInput(ItemStack input) {
|
public static AltarRecipe getRecipeForInput(ItemStack input) {
|
||||||
return recipes.get(input);
|
for (ItemStack stack : recipes.keySet())
|
||||||
|
if (stack.getIsItemStackEqual(input))
|
||||||
|
return recipes.get(stack);
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue