Skip to content

Commit

Permalink
AutoArmor equipFromInventory
Browse files Browse the repository at this point in the history
  • Loading branch information
MukjepScarlet committed Dec 18, 2024
1 parent e3bff17 commit c745308
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ object AutoArmor : Module("AutoArmor", Category.COMBAT, hideModule = false) {
return
}

val stacks = thePlayer.openContainer.inventory
val stacks = withContext(Dispatchers.Main) {
thePlayer.openContainer.inventorySlots.map { it.stack }
}

val armorSet = getBestArmorSet(stacks) ?: continue

Expand Down

0 comments on commit c745308

Please sign in to comment.