mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Sign Post orientation
This commit is contained in:
parent
698515f31b
commit
ec55ebc14e
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user