Skip to content

Apply babbaj's second review of the Java pathfinder - #21

Merged
0Mattias merged 1 commit into
mainfrom
claude/pathfinder-review-round-two
Sep 12, 2026
Merged

0Mattias merged 1 commit into
mainfrom
claude/pathfinder-review-round-two

Conversation

@0Mattias

Copy link
Copy Markdown
Owner

babbaj's second pass on cabaletta/baritone#5117 had three notes, and this brings them back from the fork's java-nether-pathfinder branch (0Mattias/baritone 8827e157), the way #20 did for the first review.

  • the x8 summary bit is kept exact after all, but only where it matters: queueBlockUpdate clears single blocks in chunks the search is using, so it passes a new exact flag to Chunk.setBlock that clears the cube's bit with its last block; the callers that fill a whole chunk at once only ever set blocks, so they keep the four-argument form and skip the scan
  • the two comments he asked to drop are gone (above CachedRegion.CACHED_REGION_MAGIC and on PathSegment.blocks)
  • four unused imports go with them

The pathfinder package stays byte for byte the branch's, modulo the package name and the licence header, and ChunkTest now checks both kinds of clear. All 102 unit tests pass locally.

🤖 Generated with Claude Code

Brings back 0Mattias/baritone 8827e157 from the fork's java-nether-pathfinder
branch, the commit cabaletta/baritone#5117 now carries, as #20 did for the
first review. The x8 summary bit is cleared with its cube's last block
again, but only for the single block updates from queueBlockUpdate, which
pass a new `exact` flag to Chunk.setBlock; the callers that fill a whole
chunk at once only ever set blocks, so they keep the four-argument form and
skip the scan. Two comments babbaj asked to drop are gone, and so are four
unused imports. The pathfinder package stays byte for byte the branch's,
modulo the package name and the licence header.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@0Mattias
0Mattias merged commit dbe0c66 into main Sep 12, 2026
8 checks passed
@0Mattias
0Mattias deleted the claude/pathfinder-review-round-two branch September 12, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant