From daae5de075abce0ce5c33825075ed3fddf3e8e52 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Thu, 10 Sep 2026 23:26:22 -0700 Subject: [PATCH] Add back deprecated constructor, mark it as such (#156) --- .../nei/recipe/RecipeHandlerPetalApothecary.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 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 41361936b..bf522985a 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 @@ -40,6 +40,13 @@ public class RecipeHandlerPetalApothecary extends TemplateRecipeHandler { output = new PositionedStack(recipe.getOutput(), 111, 21); } + // Kept for Alfheim, which calls super(recipe, false) from its NEI handler. + @Deprecated + @SuppressWarnings("unused") + public CachedPetalApothecaryRecipe(RecipePetals recipe, boolean addCenterItem) { + this(recipe); + } + public void setIngredients(List inputs) { float degreePerInput = 360F / inputs.size(); float currentDegree = -90F; @@ -74,10 +81,10 @@ public class RecipeHandlerPetalApothecary extends TemplateRecipeHandler { @Override public String getOverlayIdentifier() { - return "botania.petalApothecary"; + return getRecipeID(); } - // Used by the Alfheim addon, identical to getOverlayIdentifier() + // Kept for Alfheim, which overrides this instead of getOverlayIdentifier(). @Deprecated public String getRecipeID() { return "botania.petalApothecary";