Protocol update

This commit is contained in:
Shoghi Cervantes 2015-03-19 10:12:09 +01:00
parent d66a2d7105
commit 6735234bf4
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ class RotateHeadPacket extends DataPacket{
$this->putInt(count($this->entities));
foreach($this->entities as $d){
$this->putLong($d[0]); //eid
$this->putByte((int) ($d[1] / 360));
$this->putFloat($d[1]);
}
}

View File

@ -51,9 +51,9 @@ class SetEntityMotionPacket extends DataPacket{
$this->putInt(count($this->entities));
foreach($this->entities as $d){
$this->putLong($d[0]); //eid
$this->putShort((int) ($d[1] * 8000)); //motX
$this->putShort((int) ($d[2] * 8000)); //motY
$this->putShort((int) ($d[3] * 8000)); //motZ
$this->putFloat($d[1]); //motX
$this->putFloat($d[2]); //motY
$this->putFloat($d[3]); //motZ
}
}