Skip to content

Commit 8328403

Browse files
committed
use automated inventory config in auto totem
1 parent 5ccd53d commit 8328403

File tree

1 file changed

+8
-3
lines changed
  • src/main/kotlin/com/lambda/module/modules/combat

1 file changed

+8
-3
lines changed

src/main/kotlin/com/lambda/module/modules/combat/AutoTotem.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

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

20-
import com.lambda.config.groups.InventorySettings
20+
import com.lambda.config.AutomationConfig.Companion.setDefaultAutomationConfig
21+
import com.lambda.config.applyEdits
2122
import com.lambda.context.SafeContext
2223
import com.lambda.event.events.TickEvent
2324
import com.lambda.event.listener.SafeListener.Companion.listen
@@ -53,9 +54,13 @@ object AutoTotem : Module(
5354
private val minPlayerDistance by setting("Player Distance", 64, 32..128, 4, "Set the distance to detect players to swap") { !always && players }.group(Group.General)
5455
private val friends by setting("Friends", false, "Exclude friends from triggering player-based swaps") { !always && players }.group(Group.General)
5556

56-
override val inventoryConfig = InventorySettings(this, Group.Inventory)
57-
5857
init {
58+
setDefaultAutomationConfig {
59+
applyEdits {
60+
hideAllGroupsExcept(inventoryConfig)
61+
}
62+
}
63+
5964
listen<TickEvent.Pre> {
6065
if (!always && Reason.entries.none { it.check(this) }) return@listen
6166

0 commit comments

Comments
 (0)