Skip to content

Apply babbaj's third and fourth reviews of the Java pathfinder - #22

Merged
0Mattias merged 2 commits into
mainfrom
claude/pathfinder-review-round-three
Sep 13, 2026
Merged

0Mattias merged 2 commits into
mainfrom
claude/pathfinder-review-round-three

Conversation

@0Mattias

Copy link
Copy Markdown
Owner

babbaj added two one-comment reviews to cabaletta/baritone#5117 after approving it, and this brings them back from the fork's java-nether-pathfinder branch (0Mattias/baritone 65d533a3 and eb62fc04), the way #20 and #21 did for the earlier reviews.

  • a block update asks its state isAir() instead of comparing it against Blocks.AIR's default state, so a block that became cave air no longer counts as solid, and a single block update agrees with the whole-chunk packer, which already treats cave air as air; AIR_BLOCK_STATE had no other use and goes
  • the port's Face enum is deleted in favour of Minecraft's Direction: PathFinder takes a Direction and moves with BlockPos.relative, and the neighbour array keeps the native library's order (UP, DOWN, NORTH, SOUTH, EAST, WEST) rather than Direction.values(), so the A* search expands neighbours as it always has

The pathfinder package stays byte for byte the branch's, modulo the package name and the licence header. All 102 unit tests pass locally, and the four in-world elytra flights pass on this branch.

🤖 Generated with Claude Code

0Mattias and others added 2 commits September 13, 2026 00:44
Brings back 0Mattias/baritone 65d533a3 from the fork's java-nether-pathfinder
branch, the fix for babbaj's third review of cabaletta/baritone#5117, as #20
and #21 did for the earlier reviews. A block update asks its state isAir
instead of comparing it against Blocks.AIR's default state, so a block that
became cave air no longer counts as solid, and a single block update agrees
with writeChunkData, which already treats cave air as air when it packs a
whole chunk. AIR_BLOCK_STATE had no other use and goes. The pathfinder
package is untouched and stays byte for byte the branch's.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Brings back 0Mattias/baritone eb62fc04 from the fork's java-nether-pathfinder
branch, babbaj's next comment on cabaletta/baritone#5117. Face only named
the six directions and moved a BlockPos along one, which Direction and
BlockPos.relative already do, so the enum goes and PathFinder takes a
Direction. The neighbour array keeps the native library's order, UP, DOWN,
NORTH, SOUTH, EAST, WEST, rather than Direction.values(), so the search
expands neighbours as it always has. 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 8fbb351 into main Sep 13, 2026
11 of 12 checks passed
@0Mattias
0Mattias deleted the claude/pathfinder-review-round-three branch September 13, 2026 05:24
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