mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Changed Block->getDrops() to return Item[]
This commit is contained in:
@ -83,10 +83,10 @@ class SnowLayer extends Flowable{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
public function getDrops(Item $item) : array{
|
||||
if($item->isShovel() !== false){
|
||||
return [
|
||||
[Item::SNOWBALL, 0, 1],
|
||||
Item::get(Item::SNOWBALL, 0, 1) //TODO: check layer count
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user