Skip to content

Commit

Permalink
Fix some minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells committed Oct 17, 2024
1 parent af2aa90 commit a65d8b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public ChunkDebugClientConfig(

public ChunkDebugClientConfig() {
this(
Corner.TOP_RIGHT,
Corner.TOP_LEFT,
0.0,
0.0,
100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ void remove(long pos, int tick) {

CompletableFuture<ObjectIntPair<ChunkSelection>> getCluster(int index) {
return CompletableFuture.supplyAsync(() -> {
int corrected = index + this.clusters.count() % this.clusters.count();
int corrected = (index + this.clusters.count()) % this.clusters.count();
LongSet cluster = this.clusters.getCluster(corrected);
List<ChunkPos> positions = cluster.longStream().mapToObj(ChunkPos::new).toList();
return ObjectIntPair.of(ChunkSelection.fromPositions(positions), corrected);
Expand Down

0 comments on commit a65d8b5

Please sign in to comment.