Fixed packet issues

This commit is contained in:
Shoghi Cervantes 2015-04-09 19:55:19 +02:00
parent 1ddd58fd3b
commit ac6e2f9bf7
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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
} }
} }