mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Changed Block->getDrops() to return Item[]
This commit is contained in:
@ -654,11 +654,11 @@ class Block extends Position implements BlockIds, Metadatable{
|
||||
*
|
||||
* @param Item $item
|
||||
*
|
||||
* @return array
|
||||
* @return Item[]
|
||||
*/
|
||||
public function getDrops(Item $item){
|
||||
public function getDrops(Item $item) : array{
|
||||
return [
|
||||
[$this->getItemId(), $this->getDamage(), 1],
|
||||
Item::get($this->getItemId(), $this->getDamage(), 1),
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user