Skip to content

Commit

Permalink
Fix isEnd crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
IceTank committed Jan 6, 2024
1 parent ca35a00 commit d69a029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/goals.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ class GoalBreakBlock extends Goal {
this.goal = new GoalLookAtBlock(new Vec3(x, y, z), bot, options)
}

isEnd () {
return this.goal.isEnd()
isEnd (node) {
return this.goal.isEnd(node)
}

heuristic (node) {
Expand Down

0 comments on commit d69a029

Please sign in to comment.