File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
common/src/main/kotlin/com/lambda/module/modules/movement Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ import com.lambda.util.player.MovementUtils.mergeFrom
5252import com.lambda.util.world.FastVector
5353import com.lambda.util.world.WorldUtils.hasSupport
5454import com.lambda.util.world.WorldUtils.isPathClear
55+ import com.lambda.util.world.dist
5556import com.lambda.util.world.fastVectorOf
5657import com.lambda.util.world.toBlockPos
5758import com.lambda.util.world.toFastVec
@@ -117,8 +118,9 @@ object Pathfinder : Module(
117118
118119 listen<TickEvent .Pre > {
119120 val playerPos = player.blockPos
120- if (player.isOnGround && hasSupport(playerPos)) {
121- currentStart = playerPos.toFastVec()
121+ val currentPos = playerPos.toFastVec()
122+ if (player.isOnGround && hasSupport(playerPos) && currentPos dist currentStart > pathing.tolerance) {
123+ currentStart = currentPos
122124 needsUpdate = true
123125 }
124126 if (pathing.moveAlongPath) updateTargetNode()
You can’t perform that action at this time.
0 commit comments