From f486492c3730c32dd5cb80b6be174d352f451734 Mon Sep 17 00:00:00 2001 From: bm01 Date: Tue, 12 Feb 2013 19:13:15 +0100 Subject: [PATCH] For consistency with Bukkit, ItemChecks.isPants -> ItemChecks.isLeggings --- src/main/java/com/gmail/nossr50/skills/repair/Salvage.java | 2 +- src/main/java/com/gmail/nossr50/util/ItemChecks.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java b/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java index c74069319..af306c063 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java @@ -124,7 +124,7 @@ public class Salvage { else if (ItemChecks.isChestplate(inHand)) { return 8; } - else if (ItemChecks.isPants(inHand)) { + else if (ItemChecks.isLeggings(inHand)) { return 7; } else if (ItemChecks.isBoots(inHand)) { diff --git a/src/main/java/com/gmail/nossr50/util/ItemChecks.java b/src/main/java/com/gmail/nossr50/util/ItemChecks.java index 9c7a3bf64..d341f4c24 100644 --- a/src/main/java/com/gmail/nossr50/util/ItemChecks.java +++ b/src/main/java/com/gmail/nossr50/util/ItemChecks.java @@ -207,7 +207,7 @@ public class ItemChecks { * @param is Item to check * @return true if the item is a pair of pants, false otherwise */ - public static boolean isPants(ItemStack is) { + public static boolean isLeggings(ItemStack is) { switch (is.getType()) { case DIAMOND_LEGGINGS: case GOLD_LEGGINGS: @@ -254,7 +254,7 @@ public class ItemChecks { * @return true if the item is armor, false otherwise */ public static boolean isArmor(ItemStack is) { - return isHelmet(is) || isChestplate(is) || isPants(is) || isBoots(is); + return isHelmet(is) || isChestplate(is) || isLeggings(is) || isBoots(is); } /**