mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
LevelChunkPacket: fixed broken type assert in withCache()
This commit is contained in:
@@ -57,7 +57,7 @@ class LevelChunkPacket extends DataPacket/* implements ClientboundPacket*/{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function withCache(int $chunkX, int $chunkZ, int $subChunkCount, array $usedBlobHashes, string $extraPayload) : self{
|
public static function withCache(int $chunkX, int $chunkZ, int $subChunkCount, array $usedBlobHashes, string $extraPayload) : self{
|
||||||
(static function(int ...$hashes){})($usedBlobHashes);
|
(static function(int ...$hashes){})(...$usedBlobHashes);
|
||||||
$result = new self;
|
$result = new self;
|
||||||
$result->chunkX = $chunkX;
|
$result->chunkX = $chunkX;
|
||||||
$result->chunkZ = $chunkZ;
|
$result->chunkZ = $chunkZ;
|
||||||
|
Reference in New Issue
Block a user