mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Fixed packet issues
This commit is contained in:
@ -45,7 +45,7 @@ class AddPaintingPacket extends DataPacket{
|
|||||||
|
|
||||||
public function encode(){
|
public function encode(){
|
||||||
$this->reset();
|
$this->reset();
|
||||||
$this->putLevel($this->eid);
|
$this->putLong($this->eid);
|
||||||
$this->putInt($this->x);
|
$this->putInt($this->x);
|
||||||
$this->putInt($this->y);
|
$this->putInt($this->y);
|
||||||
$this->putInt($this->z);
|
$this->putInt($this->z);
|
||||||
|
@ -55,7 +55,7 @@ class MoveEntityPacket extends DataPacket{
|
|||||||
$this->putFloat($d[2]); //y
|
$this->putFloat($d[2]); //y
|
||||||
$this->putFloat($d[3]); //z
|
$this->putFloat($d[3]); //z
|
||||||
$this->putFloat($d[4]); //yaw
|
$this->putFloat($d[4]); //yaw
|
||||||
$this->putFloat($d[5]); //headYaw
|
$this->putFloat($d[5]); //headYaw
|
||||||
$this->putFloat($d[6]); //pitch
|
$this->putFloat($d[6]); //pitch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user