mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 14:34:16 +01:00
Switch conditions in getRequiredHeldItem and getProcessedItem
This commit is contained in:
parent
d66170c8fe
commit
ab4c29bc40
@ -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 New Issue
Block a user