From ec55ebc14efa697874ac88addacfd210132118ee Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 20 Mar 2013 19:03:09 +0100 Subject: [PATCH] Sign Post orientation --- src/material/block/attachable/SignPost.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/material/block/attachable/SignPost.php b/src/material/block/attachable/SignPost.php index 1f30e2b3..969d6157 100644 --- a/src/material/block/attachable/SignPost.php +++ b/src/material/block/attachable/SignPost.php @@ -40,7 +40,8 @@ class SignPostBlock extends TransparentBlock{ 5 => 5, ); if(!isset($faces[$face])){ - $level->setBlock($block, SIGN_POST, 0); + $b = floor((($player->entity->yaw + 180) * 16 / 360) + 0.5) & 0x0F; + $level->setBlock($block, SIGN_POST, $b); return true; }else{ $level->setBlock($block, WALL_SIGN, $faces[$face]);