mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-14 16:26:35 +01:00
Merge pull request #6424 from VoidLeech/mc1.18/fix-invalid-deploying-recipe-error-msg
Fix Deployer Recipe Error Messages
This commit is contained in:
commit
f9d96b2498
1 changed files with 2 additions and 2 deletions
|
@ -43,13 +43,13 @@ public class ItemApplicationRecipe extends ProcessingRecipe<RecipeWrapper> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Ingredient getRequiredHeldItem() {
|
public Ingredient getRequiredHeldItem() {
|
||||||
if (ingredients.isEmpty())
|
if (ingredients.size() < 2)
|
||||||
throw new IllegalStateException("Item Application Recipe: " + id.toString() + " has no tool!");
|
throw new IllegalStateException("Item Application Recipe: " + id.toString() + " has no tool!");
|
||||||
return ingredients.get(1);
|
return ingredients.get(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Ingredient getProcessedItem() {
|
public Ingredient getProcessedItem() {
|
||||||
if (ingredients.size() < 2)
|
if (ingredients.isEmpty())
|
||||||
throw new IllegalStateException("Item Application Recipe: " + id.toString() + " has no ingredient!");
|
throw new IllegalStateException("Item Application Recipe: " + id.toString() + " has no ingredient!");
|
||||||
return ingredients.get(0);
|
return ingredients.get(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue