Procházet zdrojové kódy

Fixed bug where players were unable to salvage leather armor. Closes #788

TfT_02 před 12 roky
rodič
revize
ae741a1b99

+ 1 - 0
Changelog.txt

@@ -8,6 +8,7 @@ Key:
   - Removal
 
 Version 1.4.03-dev
+ = Fixed bug where players were unable to salvage leather armor
 
 Version 1.4.02
  + Added API to get the skill and power level caps.

+ 1 - 1
src/main/java/com/gmail/nossr50/util/ItemUtils.java

@@ -264,7 +264,7 @@ public class ItemUtils {
      * @return true if the item is armor, false otherwise
      */
     public static boolean isMinecraftArmor(ItemStack is) {
-        return isDiamondArmor(is) || isGoldArmor(is) || isIronArmor(is) || isDiamondArmor(is);
+        return isLeatherArmor(is) || isGoldArmor(is) || isIronArmor(is) || isDiamondArmor(is);
     }
 
     /**