From ab4c29bc40e83133084b06990750923ba01663f3 Mon Sep 17 00:00:00 2001 From: VoidLeech Date: Mon, 29 Apr 2024 16:27:57 +0200 Subject: [PATCH] Switch conditions in getRequiredHeldItem and getProcessedItem --- .../content/kinetics/deployer/ItemApplicationRecipe.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/kinetics/deployer/ItemApplicationRecipe.java b/src/main/java/com/simibubi/create/content/kinetics/deployer/ItemApplicationRecipe.java index a57cb1374..5b2b405a9 100644 --- a/src/main/java/com/simibubi/create/content/kinetics/deployer/ItemApplicationRecipe.java +++ b/src/main/java/com/simibubi/create/content/kinetics/deployer/ItemApplicationRecipe.java @@ -43,13 +43,13 @@ public class ItemApplicationRecipe extends ProcessingRecipe { } 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); }