diff --git a/ui/core/player.ts b/ui/core/player.ts index cd09b429a3..3e44c3eead 100644 --- a/ui/core/player.ts +++ b/ui/core/player.ts @@ -1217,13 +1217,7 @@ export class Player { } if (Player.ARMOR_SLOTS.includes(slot)) { - itemData = filterItems(itemData, item => { - if (!filters.armorTypes.includes(item.armorType)) { - return false; - } - - return true; - }); + itemData = filterItems(itemData, item => filters.armorTypes.includes(item.armorType)) } else if (Player.WEAPON_SLOTS.includes(slot)) { itemData = filterItems(itemData, item => { if (!filters.weaponTypes.includes(item.weaponType)) {