ShapedRecipe: remove a curly-brace array-access that nothing noticed

This commit is contained in:
Dylan K. Taylor 2020-06-06 11:12:30 +01:00
parent 50fed41642
commit 3d50aafcc4

View File

@ -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);
}