mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-25 22:46:42 +01:00
Switch conditions in getRequiredHeldItem and getProcessedItem
This commit is contained in:
parent
d66170c8fe
commit
ab4c29bc40
1 changed files with 2 additions and 2 deletions
|
@ -43,13 +43,13 @@ public class ItemApplicationRecipe extends ProcessingRecipe<RecipeWrapper> {
|
|||
}
|
||||
|
||||
public Ingredient getRequiredHeldItem() {
|
||||
if (ingredients.isEmpty())
|
||||
if (ingredients.size() < 2)
|
||||
throw new IllegalStateException("Item Application Recipe: " + id.toString() + " has no tool!");
|
||||
return ingredients.get(1);
|
||||
}
|
||||
|
||||
public Ingredient getProcessedItem() {
|
||||
if (ingredients.size() < 2)
|
||||
if (ingredients.isEmpty())
|
||||
throw new IllegalStateException("Item Application Recipe: " + id.toString() + " has no ingredient!");
|
||||
return ingredients.get(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue