mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Heap of bugfixes, cleanup and PHP 7 upgrades
This commit is contained in:
@ -137,7 +137,7 @@ class ShapedRecipe implements Recipe{
|
||||
* @return null|Item
|
||||
*/
|
||||
public function getIngredient($x, $y){
|
||||
return isset($this->ingredients[$y][$x]) ? $this->ingredients[$y][$x] : Item::get(Item::AIR);
|
||||
return $this->ingredients[$y][$x] ?? Item::get(Item::AIR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user