Skip to content

Commit

Permalink
stfu
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Dec 21, 2024
1 parent 1224055 commit 5b435e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/world/format/io/leveldb/RegionizedLevelDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ public function __construct(

protected function coordsFromChunkIndex(string $chunkIndex) : array{
//TODO: these indexes don't need to use long in separated DBs, we could make them smaller and save space
return morton2d_decode(Binary::readLong($chunkIndex));
/**
* @var int[] $decoded
* @phpstan-var array{int, int} $decoded
*/
$decoded = morton2d_decode(Binary::readLong($chunkIndex));
return $decoded;
}

protected function coordsToChunkIndex(int $chunkX, int $chunkZ) : string{
Expand Down

0 comments on commit 5b435e7

Please sign in to comment.