Fixed some air items with count 1 instead of 0

This commit is contained in:
Dylan K. Taylor
2017-09-21 10:30:14 +01:00
parent ef6250967f
commit ee052f91d4
3 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ class ShapedRecipe implements CraftingRecipe{
*/
public function getIngredient(int $x, int $y) : Item{
$exists = $this->ingredientList[$this->shape[$y]{$x}] ?? null;
return $exists !== null ? clone $exists : ItemFactory::get(Item::AIR);
return $exists !== null ? clone $exists : ItemFactory::get(Item::AIR, 0, 0);
}
/**