From afa5ba13a2598a85a3f4068618050896c23b3bc4 Mon Sep 17 00:00:00 2001 From: koolkrafter5 Date: Tue, 2 Jun 2026 17:56:39 -0400 Subject: [PATCH] Use constructors intelligently --- .../nei/recipe/RecipeHandlerPetalApothecary.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/vazkii/botania/client/integration/nei/recipe/RecipeHandlerPetalApothecary.java b/src/main/java/vazkii/botania/client/integration/nei/recipe/RecipeHandlerPetalApothecary.java index a1120b000..3029d1ac0 100644 --- a/src/main/java/vazkii/botania/client/integration/nei/recipe/RecipeHandlerPetalApothecary.java +++ b/src/main/java/vazkii/botania/client/integration/nei/recipe/RecipeHandlerPetalApothecary.java @@ -31,15 +31,13 @@ public class RecipeHandlerPetalApothecary extends TemplateRecipeHandler { public PositionedStack output; public CachedPetalApothecaryRecipe(RecipePetals recipe, PositionedStack centerItem) { - setIngredients(recipe.getInputs()); - output = new PositionedStack(recipe.getOutput(), 111, 21); - if (centerItem != null) { - inputs.add(centerItem); - } + this(recipe); + inputs.add(centerItem); } public CachedPetalApothecaryRecipe(RecipePetals recipe) { - this(recipe, null); + setIngredients(recipe.getInputs()); + output = new PositionedStack(recipe.getOutput(), 111, 21); } public void setIngredients(List inputs) {