diff --git a/src/crafting/ShapedRecipe.php b/src/crafting/ShapedRecipe.php index 1511224e0..e346f22ad 100644 --- a/src/crafting/ShapedRecipe.php +++ b/src/crafting/ShapedRecipe.php @@ -154,7 +154,7 @@ class ShapedRecipe implements CraftingRecipe{ } public function getIngredient(int $x, int $y) : Item{ - $exists = $this->ingredientList[$this->shape[$y]{$x}] ?? null; + $exists = $this->ingredientList[$this->shape[$y][$x]] ?? null; return $exists !== null ? clone $exists : ItemFactory::air(); }