Fix recipe by stack lookup
This commit is contained in:
parent
ddcc1237e8
commit
e12c78877e
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue