We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963a8fc commit abe41e2Copy full SHA for abe41e2
src/main/kotlin/com/lambda/module/modules/combat/AutoTotem.kt
@@ -64,7 +64,12 @@ object AutoTotem : Module(
64
.filterSlots(player.currentScreenHandler.slots)
65
.takeIf { it.isNotEmpty() }
66
?.let { totems ->
67
+ val cursor = player.currentScreenHandler.cursorStack
68
+ val targetSlot = player.currentScreenHandler.slots
69
+ .findLast { !cursor.isEmpty && it.canInsert(cursor) }
70
+
71
inventoryRequest {
72
+ targetSlot?.let { pickup(it.id, 0) }
73
swap(totems.first().id, 40)
74
}.submit()
75
}
0 commit comments