mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
LevelChunkPacket: fixed broken type assert in withCache()
This commit is contained in:
parent
43ebb23085
commit
77d8f133f1
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user