Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Feb 7, 2024
1 parent e6f6c1f commit 20fa49d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MultiCompressor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use pocketmine\network\mcpe\compression\Compressor;
use pocketmine\network\mcpe\compression\DecompressionException;
use pocketmine\network\mcpe\compression\ZlibCompressor;
use pocketmine\network\mcpe\protocol\types\CompressionAlgorithm;
use pocketmine\utils\BinaryDataException;
use pocketmine\utils\BinaryStream;
use pocketmine\utils\SingletonTrait;
Expand All @@ -35,6 +36,11 @@ public function getCompressionThreshold(): ?int
return $this->zlibCompressor->getCompressionThreshold();
}

public function getNetworkId(): int
{
return CompressionAlgorithm::ZLIB;
}

public function decompress(string $payload): string
{
$stream = new BinaryStream($payload);
Expand Down

0 comments on commit 20fa49d

Please sign in to comment.