Fixed possible channel order issue with chunks and start game packet

This commit is contained in:
Shoghi Cervantes 2015-05-23 13:38:50 +02:00
parent d7be531868
commit b2b4cf788c
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -641,7 +641,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk->chunkX = $x;
$pk->chunkZ = $z;
$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){
foreach($this->level->getChunkEntities($x, $z) as $entity){