mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 13:49:55 +00:00
Protocol update
This commit is contained in:
parent
d66a2d7105
commit
6735234bf4
@ -51,7 +51,7 @@ class RotateHeadPacket extends DataPacket{
|
|||||||
$this->putInt(count($this->entities));
|
$this->putInt(count($this->entities));
|
||||||
foreach($this->entities as $d){
|
foreach($this->entities as $d){
|
||||||
$this->putLong($d[0]); //eid
|
$this->putLong($d[0]); //eid
|
||||||
$this->putByte((int) ($d[1] / 360));
|
$this->putFloat($d[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,9 +51,9 @@ class SetEntityMotionPacket extends DataPacket{
|
|||||||
$this->putInt(count($this->entities));
|
$this->putInt(count($this->entities));
|
||||||
foreach($this->entities as $d){
|
foreach($this->entities as $d){
|
||||||
$this->putLong($d[0]); //eid
|
$this->putLong($d[0]); //eid
|
||||||
$this->putShort((int) ($d[1] * 8000)); //motX
|
$this->putFloat($d[1]); //motX
|
||||||
$this->putShort((int) ($d[2] * 8000)); //motY
|
$this->putFloat($d[2]); //motY
|
||||||
$this->putShort((int) ($d[3] * 8000)); //motZ
|
$this->putFloat($d[3]); //motZ
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user