Skip to content

Commit 810975e

Browse files
committed
Fixed merge fuckup
1 parent 4b4ba43 commit 810975e

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package com.lambda.config.groups
1919

2020
import com.lambda.config.Configurable
21+
import com.lambda.config.SettingGroup
2122
import com.lambda.util.NamedEnum
2223
import com.lambda.util.math.Vec2d
2324
import net.minecraft.util.math.Vec2f
@@ -33,7 +34,7 @@ class FormatterSettings(
3334
owner: Configurable,
3435
vararg baseGroup: NamedEnum,
3536
vis: () -> Boolean = { true }
36-
) : FormatterConfig, SettingGroup(owner) {
37+
) : FormatterConfig, SettingGroup() {
3738
val localeEnum by owner.setting("Locale", FormatterConfig.Locales.US, "The regional formatting used for numbers", vis).group(*baseGroup)
3839
override val locale get() = localeEnum.locale
3940

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ class HotbarSettings(
3131
override val swapDelay by c.setting("Swap Delay", 0, 0..3, 1, "The number of ticks delay before allowing another hotbar selection swap", " ticks").group(baseGroup).index()
3232
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 }.group(baseGroup).index()
3333
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").group(baseGroup).index()
34-
override val tickStageMask by c.setting("Hotbar Stage Mask", setOf(TickEvent.Input.Post), description = "The sub-tick timing at which hotbar actions are performed").group(baseGroup).index()
34+
override val tickStageMask by c.setting("Hotbar Stage Mask", setOf<TickEvent>(TickEvent.Input.Post), description = "The sub-tick timing at which hotbar actions are performed").group(baseGroup).index()
3535
}

src/main/kotlin/com/lambda/module/hud/Coordinates.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
package com.lambda.module.hud
1919

20+
import com.lambda.config.AutomationConfig.Companion.DEFAULT.edit
2021
import com.lambda.config.groups.FormatterConfig
2122
import com.lambda.config.groups.FormatterSettings
2223
import com.lambda.gui.dsl.ImGuiBuilder

src/main/kotlin/com/lambda/module/modules/movement/BetterFirework.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package com.lambda.module.modules.movement
1919

20+
import com.lambda.config.AutomationConfig.Companion.DEFAULT.edit
21+
import com.lambda.config.AutomationConfig.Companion.DEFAULT.hideAll
2022
import com.lambda.config.groups.HotbarSettings
2123
import com.lambda.config.groups.InventorySettings
2224
import com.lambda.config.settings.collections.SetSetting.Companion.immutableSet
@@ -59,11 +61,13 @@ object BetterFirework : Module(
5961
private var clientSwing by setting("Swing", true, "Swing hand client side").group(Group.General)
6062
private var invUse by setting("Inventory", true, "Use fireworks from inventory") { activateButton.key != KeyCode.Unbound.code }.group(Group.General)
6163

62-
override val hotbarConfig = HotbarSettings(this, Group.Hotbar, vis = { false }).apply {
63-
::sequenceStageMask.edit { immutableSet(setOf(TickEvent.Pre)); defaultValue(mutableSetOf(TickEvent.Pre)) }
64+
override val hotbarConfig = HotbarSettings(this, Group.Hotbar).apply {
65+
hideAll(this)
66+
::tickStageMask.edit { immutableSet(setOf(TickEvent.Pre)); defaultValue(mutableSetOf(TickEvent.Pre)) }
6467
}
6568

66-
override val inventoryConfig = InventorySettings(this, Group.Inventory, vis = { false }).apply {
69+
override val inventoryConfig = InventorySettings(this, Group.Inventory).apply {
70+
hideAll(this)
6771
::tickStageMask.edit { immutableSet(setOf(TickEvent.Pre)); defaultValue(mutableSetOf(TickEvent.Pre)) }
6872
}
6973

@@ -219,7 +223,7 @@ object BetterFirework : Module(
219223
stack.bestItemMatch(player.hotbar)
220224
?.let {
221225
val request = HotbarRequest(player.hotbar.indexOf(it), this@BetterFirework, keepTicks = 0)
222-
.submit(queueIfClosed = false)
226+
.submit(queueIfMismatchedStage = false)
223227
if (request.done) {
224228
interaction.interactItem(player, Hand.MAIN_HAND)
225229
sendSwing()
@@ -238,7 +242,7 @@ object BetterFirework : Module(
238242
swap(swapSlotId, hotbarSlotToSwapWith)
239243
action {
240244
val request = HotbarRequest(hotbarSlotToSwapWith, this@BetterFirework, keepTicks = 0, nowOrNothing = true)
241-
.submit(queueIfClosed = false)
245+
.submit(queueIfMismatchedStage = false)
242246
if (request.done) {
243247
interaction.interactItem(player, Hand.MAIN_HAND)
244248
sendSwing()

0 commit comments

Comments
 (0)