diff --git a/commons/src/main/java/commons/FormalIngredient.java b/commons/src/main/java/commons/FormalIngredient.java index 32e5838..19f514c 100644 --- a/commons/src/main/java/commons/FormalIngredient.java +++ b/commons/src/main/java/commons/FormalIngredient.java @@ -52,14 +52,9 @@ public class FormalIngredient extends RecipeIngredient implements Scalable { - IngredientType scaleBy(int numPortions); + default IngredientType scaleBy(int numPortions) { + return scaleBy((double) numPortions); + }; IngredientType scaleBy(double factor); }