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:
@ -129,9 +129,9 @@ class WoodenSlab extends Transparent{
|
||||
return Tool::TYPE_AXE;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
public function getDrops(Item $item) : array{
|
||||
return [
|
||||
[$this->id, $this->meta & 0x07, 1],
|
||||
Item::get($this->getItemId(), $this->getDamage() & 0x07, 1)
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user