Fixed a stupid mistake in AddEntityPacket

This commit is contained in:
Dylan K. Taylor 2017-04-25 18:04:21 +01:00
parent 5a9b5db103
commit 716efe2549

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