Skip to content

Commit f59490b

Browse files
committed
Rename silent to Inventory
Set default options that actually work
1 parent 05a7d1a commit f59490b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ object BetterFirework : Module(
5757
private var fireworkInteractCancel by setting("Right Click Cancel", false, "Cancel block interactions while holding fireworks") { fireworkInteract }
5858

5959
private var clientSwing by setting("Swing", true, "Swing hand client side").group(Group.General)
60-
private var silentUse by setting("Silent", true, "Silent use fireworks from the inventory") { activateButton.key != KeyCode.Unbound.code }.group(Group.General)
60+
private var invUse by setting("Inventory", true, "Use fireworks from inventory") { activateButton.key != KeyCode.Unbound.code }.group(Group.General)
6161

62-
override val hotbarConfig = HotbarSettings(this, Group.Hotbar).apply {
63-
::sequenceStageMask.edit { immutableSet(setOf(TickEvent.Pre)) }
62+
override val hotbarConfig = HotbarSettings(this, Group.Hotbar, vis = { false }).apply {
63+
::sequenceStageMask.edit { immutableSet(setOf(TickEvent.Pre)); defaultValue(mutableSetOf(TickEvent.Pre)) }
6464
}
6565

66-
override val inventoryConfig = InventorySettings(this, Group.Inventory).apply {
67-
::tickStageMask.edit { immutableSet(setOf(TickEvent.Pre)) }
66+
override val inventoryConfig = InventorySettings(this, Group.Inventory, vis = { false }).apply {
67+
::tickStageMask.edit { immutableSet(setOf(TickEvent.Pre)); defaultValue(mutableSetOf(TickEvent.Pre)) }
6868
}
6969

7070
private enum class Group(override val displayName: String) : NamedEnum {
@@ -96,7 +96,7 @@ object BetterFirework : Module(
9696
player.startGliding()
9797
connection.sendPacket(ClientCommandC2SPacket(player, ClientCommandC2SPacket.Mode.START_FALL_FLYING))
9898
}
99-
startFirework(silentUse)
99+
startFirework(invUse)
100100
takeoffState = TakeoffState.None
101101
}
102102
}

0 commit comments

Comments
 (0)