diff --git a/src/pocketmine/block/Bed.php b/src/pocketmine/block/Bed.php index 7f4caee1e..d44f5ca2f 100644 --- a/src/pocketmine/block/Bed.php +++ b/src/pocketmine/block/Bed.php @@ -197,9 +197,9 @@ class Bed extends Transparent{ return false; } - public function getDropsForCompatibleTool(Item $item) : array{ - if($this->isHeadPart()){ - return parent::getDropsForCompatibleTool($item); + public function getDrops(Item $item) : array{ + if($this->head){ + return parent::getDrops($item); } return []; @@ -209,10 +209,6 @@ class Bed extends Transparent{ return ItemFactory::get($this->idInfo->getItemId(), $this->color->getMagicNumber()); } - public function isAffectedBySilkTouch() : bool{ - return false; - } - public function getAffectedBlocks() : array{ if(($other = $this->getOtherHalf()) !== null){ return [$this, $other]; diff --git a/src/pocketmine/block/Door.php b/src/pocketmine/block/Door.php index 8e588fd59..461a3878f 100644 --- a/src/pocketmine/block/Door.php +++ b/src/pocketmine/block/Door.php @@ -149,18 +149,14 @@ abstract class Door extends Transparent{ return true; } - public function getDropsForCompatibleTool(Item $item) : array{ - if(!$this->top){ //bottom half only - return parent::getDropsForCompatibleTool($item); + public function getDrops(Item $item) : array{ + if(!$this->top){ + return parent::getDrops($item); } return []; } - public function isAffectedBySilkTouch() : bool{ - return false; - } - public function getAffectedBlocks() : array{ $other = $this->getSide($this->top ? Facing::DOWN : Facing::UP); if($other->isSameType($this)){ diff --git a/src/pocketmine/block/NetherWartPlant.php b/src/pocketmine/block/NetherWartPlant.php index f0027de2a..c119907d7 100644 --- a/src/pocketmine/block/NetherWartPlant.php +++ b/src/pocketmine/block/NetherWartPlant.php @@ -85,8 +85,4 @@ class NetherWartPlant extends Flowable{ $this->asItem()->setCount($this->age === 3 ? mt_rand(2, 4) : 1) ]; } - - public function isAffectedBySilkTouch() : bool{ - return false; - } } diff --git a/src/pocketmine/block/Skull.php b/src/pocketmine/block/Skull.php index c067fc3d8..68e564a82 100644 --- a/src/pocketmine/block/Skull.php +++ b/src/pocketmine/block/Skull.php @@ -115,8 +115,4 @@ class Skull extends Flowable{ public function asItem() : Item{ return ItemFactory::get(Item::SKULL, $this->skullType->getMagicNumber()); } - - public function isAffectedBySilkTouch() : bool{ - return false; - } }