diff --git a/src/pocketmine/level/format/Chunk.php b/src/pocketmine/level/format/Chunk.php index 3336a341a7..4d7ca7f03e 100644 --- a/src/pocketmine/level/format/Chunk.php +++ b/src/pocketmine/level/format/Chunk.php @@ -968,9 +968,8 @@ class Chunk{ * @return Chunk */ public static function fastDeserialize(string $data) : Chunk{ - $stream = new BinaryStream(); - $stream->setBuffer($data); - $data = null; + $stream = new BinaryStream($data); + $x = $stream->getInt(); $z = $stream->getInt(); $subChunks = [];