Fixed stupid bug in resource pack chunk counting, close #1028

This commit is contained in:
Dylan K. Taylor 2017-06-07 13:29:13 +01:00
parent 3f03d9e683
commit c445db421f

View File

@ -2028,7 +2028,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk = new ResourcePackDataInfoPacket();
$pk->packId = $pack->getPackId();
$pk->maxChunkSize = 1048576; //1MB
$pk->chunkCount = $pack->getPackSize() / $pk->maxChunkSize;
$pk->chunkCount = (int) ceil($pack->getPackSize() / $pk->maxChunkSize);
$pk->compressedPackSize = $pack->getPackSize();
$pk->sha256 = $pack->getSha256();
$this->dataPacket($pk);