mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Clean up item handling of blocks
This commit is contained in:
@ -83,20 +83,12 @@ class Skull extends Flowable{
|
||||
return false;
|
||||
}
|
||||
|
||||
private function getItem() : Item{
|
||||
public function getItem() : Item{
|
||||
$tile = $this->level->getTile($this);
|
||||
return ItemFactory::get(Item::SKULL, $tile instanceof TileSkull ? $tile->getType() : 0);
|
||||
}
|
||||
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
return [$this->getItem()];
|
||||
}
|
||||
|
||||
public function isAffectedBySilkTouch() : bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getPickedItem() : Item{
|
||||
return $this->getItem();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user