mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
ShapedRecipe: remove a curly-brace array-access that nothing noticed
This commit is contained in:
parent
50fed41642
commit
3d50aafcc4
@ -164,7 +164,7 @@ class ShapedRecipe implements CraftingRecipe{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getIngredient(int $x, int $y) : Item{
|
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);
|
return $exists !== null ? clone $exists : ItemFactory::get(Item::AIR, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user