From d2493e89cac8d6731743f5a007a9878b4f40c686 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Tue, 13 Nov 2012 14:31:02 -0800 Subject: [PATCH] A few more minor things. --- .../gmail/nossr50/skills/repair/Salvage.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 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 e67ae5ea7..6cf8640d4 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/Salvage.java @@ -77,24 +77,24 @@ public class Salvage { public static int getSalvagedItemID(final ItemStack inHand) { int salvagedItem = 0; - if (ItemChecks.isDiamondTool(inHand) || ItemChecks.isDiamondArmor(inHand)) { salvagedItem = 264; } - else if (ItemChecks.isGoldTool(inHand) || ItemChecks.isGoldArmor(inHand)) { salvagedItem = 266; } - else if (ItemChecks.isIronTool(inHand) || ItemChecks.isIronArmor(inHand)){ salvagedItem = 265; } - else if (ItemChecks.isStoneTool(inHand)){ salvagedItem = 4; } - else if (ItemChecks.isWoodTool(inHand)){ salvagedItem = 5; } - else if ( ItemChecks.isLeatherArmor(inHand)){ salvagedItem = 334; } + if (ItemChecks.isDiamondTool(inHand) || ItemChecks.isDiamondArmor(inHand)) salvagedItem = 264; + else if (ItemChecks.isGoldTool(inHand) || ItemChecks.isGoldArmor(inHand)) salvagedItem = 266; + else if (ItemChecks.isIronTool(inHand) || ItemChecks.isIronArmor(inHand)) salvagedItem = 265; + else if (ItemChecks.isStoneTool(inHand)) salvagedItem = 4; + else if (ItemChecks.isWoodTool(inHand)) salvagedItem = 5; + else if ( ItemChecks.isLeatherArmor(inHand)) salvagedItem = 334; return salvagedItem; } public static int getSalvagedAmount(final ItemStack inHand) { int salvagedAmount = 0; - if (ItemChecks.isPickaxe(inHand) || ItemChecks.isAxe(inHand)) { salvagedAmount = 3; } - else if (ItemChecks.isShovel(inHand)) { salvagedAmount = 1; } - else if (ItemChecks.isSword(inHand) || ItemChecks.isHoe(inHand)) { salvagedAmount = 2; } - else if (ItemChecks.isHelmet(inHand)) { salvagedAmount = 5; } - else if (ItemChecks.isChestplate(inHand)) { salvagedAmount = 8; } - else if (ItemChecks.isPants(inHand)) { salvagedAmount = 7; } - else if (ItemChecks.isBoots(inHand)) { salvagedAmount = 4; } + if (ItemChecks.isPickaxe(inHand) || ItemChecks.isAxe(inHand)) salvagedAmount = 3; + else if (ItemChecks.isShovel(inHand)) salvagedAmount = 1; + else if (ItemChecks.isSword(inHand) || ItemChecks.isHoe(inHand)) salvagedAmount = 2; + else if (ItemChecks.isHelmet(inHand)) salvagedAmount = 5; + else if (ItemChecks.isChestplate(inHand)) salvagedAmount = 8; + else if (ItemChecks.isPants(inHand)) salvagedAmount = 7; + else if (ItemChecks.isBoots(inHand)) salvagedAmount = 4; return salvagedAmount; } /**