mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 14:49:59 +00:00
Fixed possible channel order issue with chunks and start game packet
This commit is contained in:
parent
d7be531868
commit
b2b4cf788c
@ -641,7 +641,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
$pk->chunkX = $x;
|
$pk->chunkX = $x;
|
||||||
$pk->chunkZ = $z;
|
$pk->chunkZ = $z;
|
||||||
$pk->data = $payload;
|
$pk->data = $payload;
|
||||||
$this->batchDataPacket($pk->setChannel(Network::CHANNEL_WORLD_CHUNKS));
|
$this->batchDataPacket($pk->setChannel($this->spawned ? Network::CHANNEL_WORLD_CHUNKS : Network::CHANNEL_PRIORITY));
|
||||||
|
|
||||||
if($this->spawned){
|
if($this->spawned){
|
||||||
foreach($this->level->getChunkEntities($x, $z) as $entity){
|
foreach($this->level->getChunkEntities($x, $z) as $entity){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user