Merge branch 'master' into mcpe-1.1

This commit is contained in:
Dylan K. Taylor
2017-04-25 18:05:32 +01:00
4 changed files with 189 additions and 77 deletions

View File

@ -55,8 +55,8 @@ class AddEntityPacket extends DataPacket{
$this->putUnsignedVarInt($this->type);
$this->putVector3f($this->x, $this->y, $this->z);
$this->putVector3f($this->speedX, $this->speedY, $this->speedZ);
$this->putLFloat($this->pitch * (256 / 360));
$this->putLFloat($this->yaw * (256 / 360));
$this->putLFloat($this->pitch);
$this->putLFloat($this->yaw);
$this->putUnsignedVarInt(count($this->attributes));
foreach($this->attributes as $entry){
$this->putString($entry->getName());