From 3bd94c9da73ee4775a8b571620e6779db4dcd12b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 17 Mar 2017 18:13:37 +0000 Subject: [PATCH] Heads do not drop when the supporting block is removed https://github.com/PocketMine/PocketMine-MP/pull/4087 didn't get reviewed properly, or at all :facepalm: --- src/pocketmine/block/MobHead.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) 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){