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:
@ -89,11 +89,11 @@ class Skull extends Flowable{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDrops(Item $item){
|
||||
public function getDrops(Item $item) : array{
|
||||
$tile = $this->level->getTile($this);
|
||||
if($tile instanceof SkullTile){
|
||||
return [
|
||||
[Item::SKULL, $tile->getType(), 1]
|
||||
Item::get(Item::SKULL, $tile->getType(), 1)
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user