mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Replaced more literal ints with Vector3 constants
This commit is contained in:
@ -61,7 +61,7 @@ class SignPost extends Transparent{
|
||||
|
||||
|
||||
public function place(Item $item, Block $block, Block $target, int $face, Vector3 $facePos, Player $player = null) : bool{
|
||||
if($face !== 0){
|
||||
if($face !== Vector3::SIDE_DOWN){
|
||||
$nbt = new CompoundTag("", [
|
||||
new StringTag("id", Tile::SIGN),
|
||||
new IntTag("x", $block->x),
|
||||
@ -83,7 +83,7 @@ class SignPost extends Transparent{
|
||||
}
|
||||
}
|
||||
|
||||
if($face === 1){
|
||||
if($face === Vector3::SIDE_UP){
|
||||
$this->meta = floor((($player->yaw + 180) * 16 / 360) + 0.5) & 0x0f;
|
||||
$this->getLevel()->setBlock($block, $this, true);
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user