mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Sign Post orientation
This commit is contained in:
parent
698515f31b
commit
ec55ebc14e
1 changed files with 2 additions and 1 deletions
|
|
@ -40,7 +40,8 @@ class SignPostBlock extends TransparentBlock{
|
||||||
5 => 5,
|
5 => 5,
|
||||||
);
|
);
|
||||||
if(!isset($faces[$face])){
|
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;
|
return true;
|
||||||
}else{
|
}else{
|
||||||
$level->setBlock($block, WALL_SIGN, $faces[$face]);
|
$level->setBlock($block, WALL_SIGN, $faces[$face]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue