mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Changed Block->getDrops() to return Item[]
This commit is contained in:
@ -36,9 +36,9 @@ class WoodenDoor extends Door{
|
||||
return Tool::TYPE_AXE;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
public function getDrops(Item $item) : array{
|
||||
return [
|
||||
[$this->getItemId(), 0, 1],
|
||||
Item::get($this->getItemId(), 0, 1)
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user