Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jun 29, 2023
1 parent c5ad6b6 commit ff123f2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ public static ShapeHolder create(Set<ChunkPos> chunks) {
}

private static Shape createBaseShape(Set<ChunkPos> chunks) {
final ChunkPos firstChunk = getBound(chunks, Math::min);
ChunkPos firstChunk = getBound(chunks, Math::min);
while (!chunks.contains(firstChunk)) {
// Step right until we hit a real chunk
firstChunk = ChunkPosDirection.RIGHT.add(firstChunk);
}
final List<Vector2d> points = new ArrayList<>();
points.add(new Vector2d(firstChunk.getMinBlockX(), firstChunk.getMinBlockZ()));

Expand Down

0 comments on commit ff123f2

Please sign in to comment.