mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Merge pull request #1875 from KnownUnown/patch-1
Fixed AddMobPacket's Type - (is now int)
This commit is contained in:
commit
5ec6ccefda
@ -45,12 +45,12 @@ class AddMobPacket extends DataPacket{
|
|||||||
$this->reset();
|
$this->reset();
|
||||||
$this->putInt($this->eid);
|
$this->putInt($this->eid);
|
||||||
$this->putInt($this->type);
|
$this->putInt($this->type);
|
||||||
$this->putFloat($this->x);
|
$this->putInt($this->x);
|
||||||
$this->putFloat($this->y);
|
$this->putInt($this->y);
|
||||||
$this->putFloat($this->z);
|
$this->putInt($this->z);
|
||||||
$this->putByte(floor($this->yaw * (256 / 360)));
|
$this->putByte(floor($this->yaw * (256 / 360)));
|
||||||
$this->putByte(floor($this->pitch * (256 / 360)));
|
$this->putByte(floor($this->pitch * (256 / 360)));
|
||||||
$this->put(Binary::writeMetadata($this->metadata));
|
$this->put(Binary::writeMetadata($this->metadata));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user