mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Merge branch 'stable'
This commit is contained in:
@ -498,7 +498,7 @@ class NetworkBinaryStream extends BinaryStream{
|
||||
* @see NetworkBinaryStream::putVector3()
|
||||
*/
|
||||
public function putVector3Nullable(?Vector3 $vector) : void{
|
||||
if($vector){
|
||||
if($vector !== null){
|
||||
$this->putVector3($vector);
|
||||
}else{
|
||||
$this->putLFloat(0.0);
|
||||
@ -520,7 +520,7 @@ class NetworkBinaryStream extends BinaryStream{
|
||||
* @throws BinaryDataException
|
||||
*/
|
||||
public function getByteRotation() : float{
|
||||
return (float) ($this->getByte() * (360 / 256));
|
||||
return ($this->getByte() * (360 / 256));
|
||||
}
|
||||
|
||||
public function putByteRotation(float $rotation) : void{
|
||||
|
Reference in New Issue
Block a user