Skip to content

Commit 770ec32

Browse files
committed
add pathing check
1 parent c37b72e commit 770ec32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/kotlin/com/lambda/task/tasks/BuildTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class BuildTask @Ta5kBuilder constructor(
113113
.plus(pendingInteractions.toList())
114114
.toMutableList()
115115

116-
if (bestPos != null) {
116+
if (bestPos != null && build.pathing) {
117117
drawables.add(bestPos)
118118
}
119119
TaskFlowModule.drawables = drawables
@@ -152,7 +152,7 @@ class BuildTask @Ta5kBuilder constructor(
152152

153153
is BuildResult.Contextual -> {
154154
bestPos?.let {
155-
BaritoneUtils.setGoalAndPath(GoalNear(it.pos, 1))
155+
if (build.pathing) BaritoneUtils.setGoalAndPath(GoalNear(it.pos, 1))
156156
}
157157

158158
if (atMaxPendingInteractions) return@listen

0 commit comments

Comments
 (0)