mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Fixed block picking for mob heads
This commit is contained in:
parent
758d9b9784
commit
aa05650994
@ -71,18 +71,20 @@ class Skull extends Flowable{
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDropsForCompatibleTool(Item $item) : array{
|
private function getItem() : Item{
|
||||||
$tile = $this->level->getTile($this);
|
$tile = $this->level->getTile($this);
|
||||||
if($tile instanceof TileSkull){
|
return ItemFactory::get(Item::SKULL, $tile instanceof TileSkull ? $tile->getType() : 0);
|
||||||
return [
|
}
|
||||||
ItemFactory::get(Item::SKULL, $tile->getType())
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
return [];
|
public function getDropsForCompatibleTool(Item $item) : array{
|
||||||
|
return [$this->getItem()];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isAffectedBySilkTouch() : bool{
|
public function isAffectedBySilkTouch() : bool{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getPickedItem() : Item{
|
||||||
|
return $this->getItem();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user