Skip to content

Commit

Permalink
fix when returning because out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
babbaj committed Aug 20, 2023
1 parent f80a591 commit b3fcce3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ plugins {
}

group = 'dev.babbaj'
version = '1.4'
version = '1.4.1'

java {
toolchain {
Expand Down
2 changes: 1 addition & 1 deletion src/PathFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ std::optional<Path> findPathSegment(Context& ctx, const NodePos& start, const No
fakeChunkVisits = 0;
}
if (fakeChunkVisits >= 100 && airIfFake) {
return createPath(map, startNode, currentNode, startCenter, goalCenter, Path::Type::SEGMENT);
return bestPathSoFar(map, startNode, bestSoFar, startCenter, goalCenter);
}
const ChunkPos cposNorth = bpos.north(16).toChunkPos();
const ChunkPos cposSouth = bpos.south(16).toChunkPos();
Expand Down

0 comments on commit b3fcce3

Please sign in to comment.