mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Merge commit '3d50aafcc'
# Conflicts: # resources/vanilla # src/crafting/ShapedRecipe.php
This commit is contained in:
commit
fe1b5d2d01
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user