Skip to content

Commit e7906ce

Browse files
committed
default pathing and stayInRange to false
1 parent c65136d commit e7906ce

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/main/kotlin/com/lambda/config/groups/BuildSettings.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class BuildSettings(
3636
override val breakBlocks by c.setting("Break", true, "Break blocks").group(baseGroup, Group.General).index()
3737
override val interactBlocks by c.setting("Place / Interact", true, "Interact blocks").group(baseGroup, Group.General).index()
3838

39-
override val pathing by c.setting("Pathing", true, "Path to blocks").group(baseGroup, Group.General).index()
40-
override val stayInRange by c.setting("Stay In Range", true, "Stay in range of blocks").group(baseGroup, Group.General).index()
39+
override val pathing by c.setting("Pathing", false, "Path to blocks").group(baseGroup, Group.General).index()
40+
override val stayInRange by c.setting("Stay In Range", false, "Stay in range of blocks").group(baseGroup, Group.General).index()
4141
override val collectDrops by c.setting("Collect All Drops", false, "Collect all drops when breaking blocks").group(baseGroup, Group.General).index()
4242
override val spleefEntities by c.setting("Spleef Entities", false, "Breaks blocks beneath entities blocking placements to get them out of the way").group(baseGroup, Group.General).index()
4343
override val maxPendingActions by c.setting("Max Pending Actions", 15, 1..30, 1, "The maximum count of pending interactions to allow before pausing future interactions").group(baseGroup, Group.General).index()

src/main/kotlin/com/lambda/module/modules/player/HighwayTools.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package com.lambda.module.modules.player
1919

2020
import com.lambda.config.AutomationConfig.Companion.setDefaultAutomationConfig
21+
import com.lambda.config.applyEdits
2122
import com.lambda.interaction.BaritoneManager
2223
import com.lambda.interaction.construction.blueprint.Blueprint.Companion.emptyStructure
2324
import com.lambda.interaction.construction.blueprint.PropagatingBlueprint.Companion.propagatingBlueprint
@@ -88,7 +89,13 @@ object HighwayTools : Module(
8889
}
8990

9091
init {
91-
setDefaultAutomationConfig()
92+
setDefaultAutomationConfig {
93+
applyEdits {
94+
buildConfig.apply {
95+
editTyped(::pathing, ::stayInRange) { defaultValue(true) }
96+
}
97+
}
98+
}
9299

93100
onEnable {
94101
octant = player.octant

0 commit comments

Comments
 (0)