Avoid use of internal fields in BinaryStream

This commit is contained in:
Dylan K. Taylor
2019-01-01 16:42:14 +00:00
parent 4a629e1a26
commit f81bbd60e8
9 changed files with 21 additions and 20 deletions

View File

@ -56,7 +56,7 @@ class ChunkRequestTask extends AsyncTask{
$stream = new PacketStream();
$stream->putPacket($pk);
$this->setResult(NetworkCompression::compress($stream->buffer, $this->compressionLevel));
$this->setResult(NetworkCompression::compress($stream->getBuffer(), $this->compressionLevel));
}
public function onCompletion() : void{