diff --git a/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/misc/antibot/modes/CustomAntiBotMode.kt b/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/misc/antibot/modes/CustomAntiBotMode.kt index 80a23535c1c..7f1b2b4aec7 100644 --- a/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/misc/antibot/modes/CustomAntiBotMode.kt +++ b/src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/misc/antibot/modes/CustomAntiBotMode.kt @@ -138,7 +138,7 @@ object CustomAntiBotMode : Choice("Custom"), ModuleAntiBot.IAntiBotMode { ageSet.add(entity.id) } - if (ArmorMaterial.enabled && !ArmorMaterial.isValid(entity)) { + if (Armor.enabled && !Armor.isValid(entity)) { armorSet.add(entity.id) } } @@ -155,7 +155,7 @@ object CustomAntiBotMode : Choice("Custom"), ModuleAntiBot.IAntiBotMode { with(armorSet.intIterator()) { while (hasNext()) { val entity = world.getEntityById(nextInt()) as? PlayerEntity - if (entity == null || ArmorMaterial.isValid(entity)) { + if (entity == null || Armor.isValid(entity)) { remove() } }