diff --git a/src/crafting/ShapelessRecipe.php b/src/crafting/ShapelessRecipe.php index ce7a57c30..a9e1f023c 100644 --- a/src/crafting/ShapelessRecipe.php +++ b/src/crafting/ShapelessRecipe.php @@ -37,11 +37,9 @@ class ShapelessRecipe implements CraftingRecipe{ /** * @param RecipeIngredient[] $ingredients No more than 9 total. This applies to sum of item stack counts, not count of array. * @param Item[] $results List of result items created by this recipe. - * - * TODO: we'll want to make the type parameter mandatory in PM5 */ - public function __construct(array $ingredients, array $results, ?ShapelessRecipeType $type = null){ - $this->type = $type ?? ShapelessRecipeType::CRAFTING(); + public function __construct(array $ingredients, array $results, ShapelessRecipeType $type){ + $this->type = $type; if(count($ingredients) > 9){ throw new \InvalidArgumentException("Shapeless recipes cannot have more than 9 ingredients");