diff --git a/src/pocketmine/block/MobHead.php b/src/pocketmine/block/MobHead.php index dfdbf4f06..c9a0abe87 100644 --- a/src/pocketmine/block/MobHead.php +++ b/src/pocketmine/block/MobHead.php @@ -52,6 +52,7 @@ class MobHead extends Flowable{ } protected function recalculateBoundingBox(){ + //TODO: different bounds depending on attached face (meta) return new AxisAlignedBB( $this->x + 0.25, $this->y, @@ -89,25 +90,6 @@ class MobHead extends Flowable{ return false; } - public function onUpdate($type){ - $faces = [ - 1 => 0, - 2 => 3, - 3 => 2, - 4 => 5, - 5 => 4, - ]; - if($type === Level::BLOCK_UPDATE_NORMAL){ - if($this->getSide($faces[$this->meta])->getId() === self::AIR){ - $this->getLevel()->useBreakOn($this); - - return Level::BLOCK_UPDATE_NORMAL; - } - } - - return parent::onUpdate($type); - } - public function getDrops(Item $item){ $tile = $this->level->getTile($this); if($tile instanceof SkullTile){