mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
Spawn unleashed, movement fixed and some Player DataProperty cleanup
This commit is contained in:
@ -715,9 +715,17 @@ class Level implements ChunkManager, Metadatable{
|
||||
|
||||
foreach($this->moveToSend as $index => $entry){
|
||||
Level::getXZ($index, $chunkX, $chunkZ);
|
||||
$pk = new MoveEntityPacket();
|
||||
$pk->entities = $entry;
|
||||
$this->addChunkPacket($chunkX, $chunkZ, $pk);
|
||||
foreach($entry as $e) {
|
||||
$pk = new MoveEntityPacket();
|
||||
$pk->eid = $e[0];
|
||||
$pk->x = $e[1];
|
||||
$pk->y = $e[2];
|
||||
$pk->z = $e[3];
|
||||
$pk->yaw = $e[4];
|
||||
$pk->headYaw = $e[5];
|
||||
$pk->pitch = $e[6];
|
||||
$this->addChunkPacket($chunkX, $chunkZ, $pk);
|
||||
}
|
||||
}
|
||||
$this->moveToSend = [];
|
||||
|
||||
|
Reference in New Issue
Block a user