mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 20:52:20 +00:00
Use constructors intelligently
This commit is contained in:
1 parent
48b03707bb
commit
afa5ba13a2
1 file changed
+4
-6
+4
-6
@@ -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<Object> inputs) {
|
||||
|
||||
Reference in new issue
Block a user