Skip to content

Commit 38001e4

Browse files
committed
Fixed the sorting logic of localIndexesSortedByOffset in ChunkRegionHeader
1 parent 34681c8 commit 38001e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/java/org/glavo/nbt/internal/ChunkRegionHeader.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public ChunkRegionHeader(int @Unmodifiable [] sectorInfo, int @Unmodifiable [] t
4848
this.timestamps = timestamps;
4949
this.localIndexesSortedByOffset = IntStream.range(0, CHUNKS_PRE_REGION)
5050
.boxed()
51-
.sorted(Comparator.comparingInt(ChunkUtils::getSectorOffset).thenComparingInt(Integer::intValue))
51+
.sorted(Comparator.comparingInt(this::getSectorOffset).thenComparingInt(Integer::intValue))
5252
.mapToInt(Integer::intValue)
5353
.toArray();
5454
}

0 commit comments

Comments
 (0)