From 505d6e258f9b7f0ee1f5297f4ecc50436cd82ec5 Mon Sep 17 00:00:00 2001 From: bm01 Date: Tue, 12 Feb 2013 19:17:53 +0100 Subject: [PATCH] Removed no longer needed method (Misc.hasArmor) --- src/main/java/com/gmail/nossr50/util/Misc.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Misc.java b/src/main/java/com/gmail/nossr50/util/Misc.java index c2b965ede..dd4e11399 100644 --- a/src/main/java/com/gmail/nossr50/util/Misc.java +++ b/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();