From 78ca2f2e58b11c3249f4d79a6db0a396f5c5f549 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 9 Oct 2017 18:12:56 +0100 Subject: [PATCH] fix heads rotating 45 degrees when placed facing north --- src/pocketmine/block/Skull.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/block/Skull.php b/src/pocketmine/block/Skull.php index 03fc7efef..ed4793258 100644 --- a/src/pocketmine/block/Skull.php +++ b/src/pocketmine/block/Skull.php @@ -67,10 +67,10 @@ class Skull extends Flowable{ public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $facePos, Player $player = null) : bool{ if($face !== Vector3::SIDE_DOWN){ $this->meta = $face; - if($face === Vector3::SIDE_UP){ + + $rot = 0; + if($face === Vector3::SIDE_UP and $player !== null){ $rot = floor(($player->yaw * 16 / 360) + 0.5) & 0x0F; - }else{ - $rot = $face; } $this->getLevel()->setBlock($blockReplace, $this, true); $nbt = new CompoundTag("", [