@@ -168,6 +168,7 @@ internal object HighwayTools : PluginModule(
168
168
private val printDebug by setting(" Show Queue" , false , { page == Page .CONFIG }, description = " Shows task queue in HUD" )
169
169
private val debugMessages by setting(" Debug Messages" , DebugMessages .IMPORTANT , { page == Page .CONFIG }, description = " Sets the debug log depth level" )
170
170
private val goalRender by setting(" Goal Render" , false , { page == Page .CONFIG }, description = " Renders the baritone goal" )
171
+ private val showCurrentPos by setting(" Current Pos Render" , false , { page == Page .CONFIG }, description = " Renders the current position" )
171
172
private val filled by setting(" Filled" , true , { page == Page .CONFIG }, description = " Renders colored task surfaces" )
172
173
private val outline by setting(" Outline" , true , { page == Page .CONFIG }, description = " Renders colored task outlines" )
173
174
private val popUp by setting(" Pop up" , true , { page == Page .CONFIG }, description = " Funny render effect" )
@@ -463,7 +464,7 @@ internal object HighwayTools : PluginModule(
463
464
renderer.thickness = thickness
464
465
val currentTime = System .currentTimeMillis()
465
466
466
- renderer.add(currentBlockPos, ColorHolder (255 , 255 , 255 ))
467
+ if (showCurrentPos) renderer.add(currentBlockPos, ColorHolder (255 , 255 , 255 ))
467
468
468
469
if (containerTask.taskState != TaskState .DONE ) {
469
470
addToRenderer(containerTask, currentTime)
@@ -934,7 +935,9 @@ internal object HighwayTools : PluginModule(
934
935
private fun SafeClientEvent.doPathing () {
935
936
when (moveState) {
936
937
MovementState .RUNNING , MovementState .BRIDGE -> {
937
- if (! shouldBridge() && moveState == MovementState .BRIDGE ) moveState = MovementState .RUNNING
938
+ if (! shouldBridge() && moveState == MovementState .BRIDGE ) {
939
+ moveState = MovementState .RUNNING
940
+ }
938
941
939
942
if (moveState == MovementState .BRIDGE &&
940
943
bridging && player.positionVector.distanceTo(currentBlockPos) < 1 ) {
@@ -950,6 +953,8 @@ internal object HighwayTools : PluginModule(
950
953
player.motionZ = (target.z - player.posZ).coerceIn(- 0.2 , 0.2 )
951
954
}
952
955
956
+ goal = GoalNear (currentBlockPos, 0 )
957
+
953
958
var nextPos = currentBlockPos
954
959
val possiblePos = nextPos.add(startingDirection.directionVec)
955
960
@@ -971,8 +976,6 @@ internal object HighwayTools : PluginModule(
971
976
refreshData()
972
977
}
973
978
974
- goal = GoalNear (currentBlockPos, 0 )
975
-
976
979
if (currentBlockPos.distanceTo(targetBlockPos) < 2 ||
977
980
(distancePending > 0 && startingBlockPos.add(startingDirection.directionVec.multiply(distancePending)).distanceTo(currentBlockPos) == 0.0 )) {
978
981
sendChatMessage(" $chatName Reached target destination" )
0 commit comments