瀏覽代碼

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

TfT_02 12 年之前
父節點
當前提交
ae741a1b99
共有 2 個文件被更改,包括 2 次插入1 次删除
  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
 
 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);
     }
 
     /**