Fixed bug with checking if an entity is wearing armor.