mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
fixed #992
This commit is contained in:
@ -355,4 +355,12 @@ abstract class DataPacket extends BinaryStream{
|
||||
$this->putLFloat($y);
|
||||
$this->putLFloat($z);
|
||||
}
|
||||
|
||||
public function getByteRotation() : float{
|
||||
return (float) ($this->getByte() * (360 / 256));
|
||||
}
|
||||
|
||||
public function putByteRotation(float $rotation){
|
||||
$this->putByte((int) ($rotation / (360 / 256)));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user