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:
@ -50,11 +50,11 @@ class NetherReactor extends Solid{
|
||||
return 3;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
public function getDrops(Item $item) : array{
|
||||
if($item->isPickaxe() >= Tool::TIER_WOODEN){
|
||||
return [
|
||||
[Item::IRON_INGOT, 0, 6],
|
||||
[Item::DIAMOND, 0, 3]
|
||||
Item::get(Item::IRON_INGOT, 0, 6),
|
||||
Item::get(Item::DIAMOND, 0, 3)
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user