diff --git a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/AutoArmor.kt b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/AutoArmor.kt index 23be24fd0a3..e8c2278f5a5 100644 --- a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/AutoArmor.kt +++ b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/AutoArmor.kt @@ -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