Browse Source

Removed no longer needed method (Misc.hasArmor)

bm01 12 years ago
parent
commit
505d6e258f
1 changed files with 0 additions and 16 deletions
  1. 0 16
      src/main/java/com/gmail/nossr50/util/Misc.java

+ 0 - 16
src/main/java/com/gmail/nossr50/util/Misc.java

@@ -60,22 +60,6 @@ public final class Misc {
         return NORMAL_SKILL_ACTIVATION_CHANCE;
     }
 
-    /**
-     * Check if a LivingEntity has armor.
-     *
-     * @param entity LivingEntity whose armor to check
-     * @return true if the player has armor, false otherwise
-     */
-    public static boolean hasArmor(LivingEntity entity) {
-        for (ItemStack armor : entity.getEquipment().getArmorContents()) {
-            if (armor.getType() != Material.AIR) {
-                return true;
-            }
-        }
-
-        return false;
-    }
-
     public static boolean isFriendlyPet(Player attacker, Tameable pet) {
         if (pet.isTamed()) {
             AnimalTamer tamer = pet.getOwner();