Skip to content

Commit b04d974

Browse files
committed
remove unused TaskDecisionTree class, rename Disable Crouch to Disable Sneak in InventoryMove, and remove Contextual check in Printer flatten mode apply logic
1 parent 0732c52 commit b04d974

3 files changed

Lines changed: 3 additions & 25 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ object InventoryMove : Module(
4949
tag = ModuleTag.PLAYER,
5050
) {
5151
private val clickGui by setting("ClickGui", false)
52-
private val disableSneak by setting("Disable Crouch", false)
52+
private val disableSneak by setting("Disable Sneak", false)
5353
private val arrowKeys by setting("Arrow Keys", false, "Allows rotating the players camera using the arrow keys")
5454
private val speed by setting("Rotation Speed", 5, 1..20, 1, unit = "°/tick") { arrowKeys }
5555
override val rotationConfig = RotationConfig.Instant(RotationMode.Lock)

src/main/kotlin/com/lambda/module/modules/world/Printer.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import com.lambda.config.AutomationConfig.Companion.setDefaultAutomationConfig
2121
import com.lambda.context.SafeContext
2222
import com.lambda.interaction.construction.blueprint.TickingBlueprint.Companion.tickingBlueprint
2323
import com.lambda.interaction.construction.simulation.result.BuildResult
24-
import com.lambda.interaction.construction.simulation.result.Contextual
2524
import com.lambda.interaction.construction.simulation.result.results.BreakResult
2625
import com.lambda.interaction.construction.simulation.result.results.InteractResult
2726
import com.lambda.interaction.construction.verify.TargetState
@@ -87,8 +86,7 @@ object Printer : Module(
8786
* @return true if the build result should be built, false if it should be ignored
8887
*/
8988
private fun SafeContext.filterBuildResults(buildResult: BuildResult): Boolean {
90-
return if (buildResult !is Contextual ||
91-
buildResult is InteractResult && !flattenModeApply.placing ||
89+
return if (buildResult is InteractResult && !flattenModeApply.placing ||
9290
buildResult is BreakResult && !flattenModeApply.breaking) true
9391
else isInFlatten(buildResult.pos, flattenMode, sneakLowersFlatten, baritoneSelection, inverseSelection)
9492
}
@@ -105,7 +103,7 @@ object Printer : Module(
105103
override val description: String
106104
) : NamedEnum, Describable {
107105
BreakOnly("Break Only", true, false, "Only applies flattening logic to blocks that are being broken"),
108-
PlaceOnly("Place Only", false, true, "Only applies flattening logic to blocks that are being placed"),
106+
InteractOnly("Place/Interact Only", false, true, "Only applies flattening logic to blocks that are being placed"),
109107
Both("Both", true, true, "Applies flattening logic to all blocks, whether being placed or broken")
110108
}
111109
}

src/main/kotlin/com/lambda/task/TaskDecisionTree.kt

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)