mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Changed Block->getDrops() to return Item[]
This commit is contained in:
@ -93,9 +93,9 @@ class Torch extends Flowable{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
public function getDrops(Item $item) : array{
|
||||
return [
|
||||
[$this->id, 0, 1],
|
||||
Item::get($this->getItemId(), 0, 1)
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user