Bladeren bron

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

TfT_02 12 jaren geleden
bovenliggende
commit
ae741a1b99
2 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/util/ItemUtils.java

+ 1 - 0
Changelog.txt

@@ -8,6 +8,7 @@ Key:
   - Removal
   - Removal
 
 
 Version 1.4.03-dev
 Version 1.4.03-dev
+ = Fixed bug where players were unable to salvage leather armor
 
 
 Version 1.4.02
 Version 1.4.02
  + Added API to get the skill and power level caps.
  + 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
      * @return true if the item is armor, false otherwise
      */
      */
     public static boolean isMinecraftArmor(ItemStack is) {
     public static boolean isMinecraftArmor(ItemStack is) {
-        return isDiamondArmor(is) || isGoldArmor(is) || isIronArmor(is) || isDiamondArmor(is);
+        return isLeatherArmor(is) || isGoldArmor(is) || isIronArmor(is) || isDiamondArmor(is);
     }
     }
 
 
     /**
     /**