Skip to content

Commit 2dad5ca

Browse files
committed
changes
1 parent 19d0cc7 commit 2dad5ca

File tree

30 files changed

+45
-124
lines changed

30 files changed

+45
-124
lines changed

src/main/kotlin/com/lambda/config/Configurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ abstract class Configurable(
257257
inline fun <reified T : Any> setting(
258258
name: String,
259259
immutableList: Set<T>,
260-
defaultValue: Set<T>,
260+
defaultValue: Set<T> = immutableList,
261261
description: String = "",
262262
noinline visibility: () -> Boolean = { true },
263263
) = SetSetting(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class BreakSettings(
5050
override val breakDelay by c.setting("Break Delay", 0, 0..6, 1, "The delay between breaking blocks", " ticks") { vis() && page == Page.General }
5151

5252
// Timing
53-
override val breakStageMask by c.setting("Break Stage Mask", setOf(TickEvent.Input.Post, TickEvent.Player.Post), "The sub-tick timing at which break actions can be performed") { vis() && page == Page.General }
53+
override val breakStageMask by c.setting("Break Stage Mask", setOf(TickEvent.Input.Post, TickEvent.Player.Post), description = "The sub-tick timing at which break actions can be performed") { vis() && page == Page.General }
5454

5555
// Swap
5656
override val swapMode by c.setting("Swap Mode", BreakConfig.SwapMode.End, "Decides when to swap to the best suited tool when breaking a block") { vis() && page == Page.General }
@@ -71,7 +71,7 @@ class BreakSettings(
7171
override val avoidLiquids by c.setting("Avoid Liquids", true, "Avoids breaking blocks that would cause liquid to spill") { vis() && page == Page.General }
7272
override val avoidSupporting by c.setting("Avoid Supporting", true, "Avoids breaking the block supporting the player") { vis() && page == Page.General }
7373
override val breakWeakBlocks by c.setting("Break Weak Blocks", false, "Break blocks that dont have structural integrity (e.g: grass)") { vis() && page == Page.General }
74-
override val ignoredBlocks by c.setting("Ignored Blocks", allSigns, "Blocks that wont be broken") { vis() && page == Page.General }
74+
override val ignoredBlocks by c.setting("Ignored Blocks", allSigns, description = "Blocks that wont be broken") { vis() && page == Page.General }
7575

7676
// Tool
7777
override val suitableToolsOnly by c.setting("Suitable Tools Only", false, "Places a restriction to only use tools suitable for the given block") { vis() && page == Page.General }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ class HotbarSettings(
2929
override val swapDelay by c.setting("Swap Delay", 0, 0..3, 1, "The number of ticks delay before allowing another hotbar selection swap", " ticks", visibility = vis)
3030
override val swapsPerTick by c.setting("Swaps Per Tick", 3, 1..10, 1, "The number of hotbar selection swaps that can take place each tick") { swapDelay <= 0 && vis() }
3131
override val swapPause by c.setting("Swap Pause", 0, 0..20, 1, "The delay in ticks to pause actions after switching to the slot", " ticks", visibility = vis)
32-
override val sequenceStageMask by c.setting("Hotbar Stage Mask", setOf(TickEvent.Input.Post), "The sub-tick timing at which hotbar actions are performed", visibility = vis)
32+
override val sequenceStageMask by c.setting("Hotbar Stage Mask", setOf(TickEvent.Input.Post), description = "The sub-tick timing at which hotbar actions are performed", visibility = vis)
3333
}

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class InventorySettings(
2828
) : InventoryConfig {
2929
val page by c.setting("Inventory Page", Page.Container, "The page to open when the module is enabled", vis)
3030

31-
override val disposables by c.setting("Disposables", ItemUtils.defaultDisposables, "Items that will be included when checking for a free slot / are allowed to be droped when inventory is full") { vis() && page == Page.Container}
31+
override val disposables by c.setting("Disposables", ItemUtils.defaultDisposables, ItemUtils.defaultDisposables, "Items that will be included when checking for a free slot / are allowed to be droped when inventory is full") { vis() && page == Page.Container}
3232
override val swapWithDisposables by c.setting("Swap With Disposables", true, "Swap items with disposable ones") { vis() && page == Page.Container}
3333
override val providerPriority by c.setting("Provider Priority", Priority.WithMinItems, "What container to prefer when retrieving the item from") { vis() && page == Page.Container}
3434
override val storePriority by c.setting("Store Priority", Priority.WithMinItems, "What container to prefer when storing the item to") { vis() && page == Page.Container}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PlaceSettings(
3030
override val rotateForPlace by c.setting("Rotate For Place", true, "Rotate towards block while placing", visibility = vis)
3131
override val airPlace by c.setting("Air Place", AirPlaceMode.None, "Allows for placing blocks without adjacent faces", visibility = vis)
3232
override val axisRotateSetting by c.setting("Axis Rotate", true, "Overrides the Rotate For Place setting and rotates the player on each axis to air place rotational blocks") { vis() && airPlace.isEnabled() }
33-
override val placeStageMask by c.setting("Place Sequence Mode", setOf(TickEvent.Pre, TickEvent.Input.Pre, TickEvent.Player.Post), "The sub-tick timing at which break actions are performed", visibility = vis)
33+
override val placeStageMask by c.setting("Place Sequence Mode", setOf(TickEvent.Pre, TickEvent.Input.Pre, TickEvent.Player.Post), description = "The sub-tick timing at which break actions are performed", visibility = vis)
3434
override val placeConfirmationMode by c.setting("Place Confirmation", PlaceConfirmationMode.PlaceThenAwait, "Wait for block placement confirmation", visibility = vis)
3535
override val maxPendingPlacements by c.setting("Max Pending Placements", 5, 0..30, 1, "The maximum amount of pending placements", visibility = vis)
3636
override val placementsPerTick by c.setting("Places Per Tick", 1, 1..30, 1, "Maximum instant block places per tick", visibility = vis)

src/main/kotlin/com/lambda/config/settings/complex/BlockPosSetting.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ class BlockPosSetting(
4343
description,
4444
visibility
4545
) {
46-
private var x = "${value.x}"
47-
private var y = value.y
48-
private var z = value.z
49-
5046
override val layout: ImGuiBuilder.() -> Unit
5147
get() =
5248
{

src/main/kotlin/com/lambda/interaction/construction/result/BreakResult.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ package com.lambda.interaction.construction.result
1919

2020
import baritone.api.pathing.goals.GoalBlock
2121
import baritone.api.pathing.goals.GoalInverted
22-
import com.lambda.interaction.request.inventory.InventoryConfig
2322
import com.lambda.context.SafeContext
2423
import com.lambda.interaction.construction.context.BreakContext
2524
import com.lambda.interaction.material.StackSelection.Companion.selectStack
2625
import com.lambda.interaction.material.container.ContainerManager.transfer
2726
import com.lambda.interaction.material.container.MaterialContainer
2827
import com.lambda.interaction.material.container.containers.MainHandContainer
28+
import com.lambda.interaction.request.inventory.InventoryConfig
2929
import net.minecraft.block.BlockState
3030
import net.minecraft.item.Item
3131
import net.minecraft.util.math.BlockPos

src/main/kotlin/com/lambda/interaction/construction/result/BuildResult.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ package com.lambda.interaction.construction.result
1919

2020
import baritone.api.pathing.goals.GoalBlock
2121
import baritone.api.pathing.goals.GoalNear
22-
import com.lambda.interaction.request.inventory.InventoryConfig
2322
import com.lambda.context.SafeContext
2423
import com.lambda.interaction.construction.context.BuildContext
2524
import com.lambda.interaction.material.StackSelection
2625
import com.lambda.interaction.material.StackSelection.Companion.select
2726
import com.lambda.interaction.material.container.ContainerManager.transfer
2827
import com.lambda.interaction.material.container.MaterialContainer
2928
import com.lambda.interaction.material.container.containers.MainHandContainer
29+
import com.lambda.interaction.request.inventory.InventoryConfig
3030
import com.lambda.util.BlockUtils.blockState
3131
import com.lambda.util.Nameable
3232
import net.minecraft.block.BlockState

src/main/kotlin/com/lambda/interaction/construction/verify/TargetState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
package com.lambda.interaction.construction.verify
1919

20-
import com.lambda.interaction.request.inventory.InventoryConfig
2120
import com.lambda.interaction.material.container.ContainerManager.findDisposable
21+
import com.lambda.interaction.request.inventory.InventoryConfig
2222
import com.lambda.module.modules.client.TaskFlowModule
2323
import com.lambda.util.BlockUtils.isEmpty
2424
import com.lambda.util.BlockUtils.matches

0 commit comments

Comments
 (0)