diff --git a/src/pocketmine/inventory/ShapedRecipe.php b/src/pocketmine/inventory/ShapedRecipe.php index a8126c55c..31b179737 100644 --- a/src/pocketmine/inventory/ShapedRecipe.php +++ b/src/pocketmine/inventory/ShapedRecipe.php @@ -164,7 +164,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::get(Item::AIR, 0, 0); }